Chromium Code Reviews| Index: chrome/browser/profiles/profile_io_data.cc |
| diff --git a/chrome/browser/profiles/profile_io_data.cc b/chrome/browser/profiles/profile_io_data.cc |
| index dcf3bcf9d593e80c22e8e293bff942b704ac5f2a..5038f56fddde2e11c3142e7e2e13cea3807307e8 100644 |
| --- a/chrome/browser/profiles/profile_io_data.cc |
| +++ b/chrome/browser/profiles/profile_io_data.cc |
| @@ -97,6 +97,7 @@ |
| #if defined(OS_ANDROID) |
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" |
| #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_factory_android.h" |
| +#include "components/data_reduction_proxy/common/data_reduction_proxy_switches.h" |
| #endif // defined(OS_ANDROID) |
| #if defined(OS_CHROMEOS) |
| @@ -840,6 +841,14 @@ bool ProfileIOData::GetMetricsEnabledStateOnIOThread() const { |
| #endif // defined(OS_CHROMEOS) |
| } |
| +#if defined(OS_ANDROID) |
| +bool ProfileIOData::IsDataReductionProxyEnabled() const { |
| + return data_reduction_proxy_enabled_.GetValue() |
| + || CommandLine::ForCurrentProcess()->HasSwitch( |
|
sky
2014/07/17 03:28:36
nit: || on previous line.
|
| + data_reduction_proxy::switches::kEnableDataReductionProxy); |
| +} |
| +#endif |
| + |
| base::WeakPtr<net::HttpServerProperties> |
| ProfileIOData::http_server_properties() const { |
| return http_server_properties_->GetWeakPtr(); |