Migrate...
Migrate components/data_reduction_proxy/core/browser/data_reduction_proxy_config_service_client.cc to using SimpleURLLoader URLFetcher will stop working with advent of Network Service, and SimpleURLLoader is the replacement API for most clients. This CL migrates Android's WarmupURLFetcher and the respective unittests away from URLFetcher. When migrating the unittests, it was opted to implement a queue of mocked responses mechanism, to mimic the current behavior (using net::MockClientSocketFactory and net::MockRead objects). The CL also removed the helper method GetURLFetcherForConfig, merging it into RetrieveRemoteConfig. Basically, although it made sense with URLFetcher's set up and flow of method calls, it is not the case with SimpleURLLoader. BUG=879784 Change-Id: I0c38042fcd37f5848dca49ff8322e514f818cdba Reviewed-on: https://chromium-review.googlesource.com/c/1274405Reviewed-by:Matt Menke <mmenke@chromium.org> Reviewed-by:
Tarun Bansal <tbansal@chromium.org> Commit-Queue: Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#598936}
Showing
Please register or sign in to comment