| Index: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
|
| diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
|
| index abdbe4bd60e623134369db81ff2249744cc6cdaf..9614b69ba78b25bd2d79903e7e651b18e8fda54c 100644
|
| --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
|
| +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
|
|
|
| #include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
|
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| @@ -33,8 +34,17 @@ void DataReductionProxyChromeSettings::InitDataReductionProxySettings(
|
| DataReductionProxySettings::InitDataReductionProxySettings(
|
| prefs,
|
| g_browser_process->local_state(),
|
| - ProfileManager::GetActiveUserProfile()->GetRequestContext());
|
| + ProfileManager::GetActiveUserProfile()->GetRequestContext(),
|
| + base::Bind(&DataReductionProxyChromeSettings::RegisterSyntheticFieldTrial,
|
| + base::Unretained(this)));
|
|
|
| SetDataReductionProxyAlternativeEnabled(
|
| DataReductionProxyParams::IsIncludedInAlternativeFieldTrial());
|
| }
|
| +
|
| +void DataReductionProxyChromeSettings::RegisterSyntheticFieldTrial(
|
| + bool data_reduction_proxy_enabled) {
|
| + ChromeMetricsServiceAccessor::RegisterSyntheticFieldTrial(
|
| + "DataReductionProxyEnabled",
|
| + data_reduction_proxy_enabled ? "true" : "false");
|
| +}
|
|
|