Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc |
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc |
index 491d87fee647bd9d80b81c2f1ceb31e87711e966..3616d444f0f47f85eb495092814df8ba875f20f3 100644 |
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc |
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_stats_unittest.cc |
@@ -906,9 +906,10 @@ TEST_F(DataReductionProxyBypassStatsEndToEndTest, |
TEST_F(DataReductionProxyBypassStatsEndToEndTest, BypassedBytesNetErrorOther) { |
// Make the data reduction proxy host fail to resolve. |
+ net::ProxyServer origin = |
+ config()->test_params()->proxies_for_http(false).front(); |
scoped_ptr<net::MockHostResolver> host_resolver(new net::MockHostResolver()); |
- host_resolver->rules()->AddSimulatedFailure( |
- config()->test_params()->origin().host_port_pair().host()); |
+ host_resolver->rules()->AddSimulatedFailure(origin.host_port_pair().host()); |
set_host_resolver(host_resolver.get()); |
InitializeContext(); |