| Index: components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc
|
| diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc
|
| index ec976628a9a1501227923d2a493d2eb31a2ca194..a13c93b766c9456e5d854ea94f320842f5cfe569 100644
|
| --- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc
|
| +++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "components/data_reduction_proxy/browser/data_reduction_proxy_settings_test_utils.h"
|
|
|
| +#include "base/bind.h"
|
| #include "base/command_line.h"
|
| #include "base/message_loop/message_loop.h"
|
| #include "base/prefs/pref_registry_simple.h"
|
| @@ -299,12 +300,18 @@ void DataReductionProxySettingsTestBase::CheckInitDataReductionProxy(
|
| settings_->SetProxyConfigurator(configurator.Pass());
|
| scoped_refptr<net::TestURLRequestContextGetter> request_context =
|
| new net::TestURLRequestContextGetter(base::MessageLoopProxy::current());
|
| - settings_->InitDataReductionProxySettings(&pref_service_,
|
| - &pref_service_,
|
| - request_context.get());
|
| +
|
| + settings_->InitDataReductionProxySettings(
|
| + &pref_service_,
|
| + &pref_service_,
|
| + request_context.get(),
|
| + base::Bind(&DataReductionProxySettingsTestBase::
|
| + RegisterSyntheticFieldTrialCallback,
|
| + base::Unretained(this)));
|
|
|
| base::MessageLoop::current()->RunUntilIdle();
|
| CheckProxyConfigs(enabled_at_startup, false, false);
|
| + EXPECT_EQ(enabled_at_startup, proxy_enabled_);
|
| }
|
|
|
| } // namespace data_reduction_proxy
|
|
|