Index: components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc |
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc |
index 27c68a6389cab38878e7cab5b1a5c07805a849c8..f4619250945c7cfa05bd78f2321f0a0b5a24114b 100644 |
--- a/components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc |
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_settings_unittest.cc |
@@ -420,9 +420,14 @@ TEST_F(DataReductionProxySettingsTest, CheckInitMetricsWhenNotAllowed) { |
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()); |
+ settings_->SetOnDataReductionEnabledCallback( |
+ base::Bind(&DataReductionProxySettingsTestBase:: |
+ RegisterSyntheticFieldTrialCallback, |
+ base::Unretained(this))); |
base::MessageLoop::current()->RunUntilIdle(); |
} |