Index: chrome/browser/profiles/off_the_record_profile_impl.cc |
diff --git a/chrome/browser/profiles/off_the_record_profile_impl.cc b/chrome/browser/profiles/off_the_record_profile_impl.cc |
index 6607bbd2530d91be8493846607036312e88b9030..66b12bd5484e30090357697f8f61f7184b31c0b4 100644 |
--- a/chrome/browser/profiles/off_the_record_profile_impl.cc |
+++ b/chrome/browser/profiles/off_the_record_profile_impl.cc |
@@ -24,6 +24,7 @@ |
#include "chrome/browser/net/chrome_url_request_context_getter.h" |
#include "chrome/browser/net/pref_proxy_config_tracker.h" |
#include "chrome/browser/net/proxy_service_factory.h" |
+#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator.h" |
#include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
#include "chrome/browser/plugins/plugin_prefs.h" |
#include "chrome/browser/prefs/incognito_mode_prefs.h" |
@@ -131,9 +132,11 @@ void OffTheRecordProfileImpl::Init() { |
IncognitoModePrefs::GetAvailability(profile_->GetPrefs()) != |
IncognitoModePrefs::DISABLED); |
-#if defined(OS_ANDROID) || defined(OS_IOS) |
- UseSystemProxy(); |
-#endif // defined(OS_ANDROID) || defined(OS_IOS) |
+ DataReductionProxyChromeConfigurator* data_reduction_proxy_configurator = |
+ new DataReductionProxyChromeConfigurator( |
+ prefs_, |
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)); |
+ data_reduction_proxy_configurator->Disable(); |
bengr
2014/10/27 23:28:01
Could this be a static function called:
void DataR
Not at Google. Contact bengr
2014/10/28 19:51:03
Done.
|
// TODO(oshima): Remove the need to eagerly initialize the request context |
// getter. chromeos::OnlineAttempt is illegally trying to access this |
@@ -211,22 +214,6 @@ void OffTheRecordProfileImpl::InitHostZoomMap() { |
base::Unretained(this))); |
} |
-#if defined(OS_ANDROID) || defined(OS_IOS) |
-void OffTheRecordProfileImpl::UseSystemProxy() { |
- // Force the use of the system-assigned proxy when off the record. |
- const char kProxyMode[] = "mode"; |
- const char kProxyServer[] = "server"; |
- const char kProxyBypassList[] = "bypass_list"; |
- const char kProxyPacUrl[] = "pac_url"; |
- DictionaryPrefUpdate update(prefs_, prefs::kProxy); |
- base::DictionaryValue* dict = update.Get(); |
- dict->SetString(kProxyMode, ProxyModeToString(ProxyPrefs::MODE_SYSTEM)); |
- dict->SetString(kProxyPacUrl, ""); |
- dict->SetString(kProxyServer, ""); |
- dict->SetString(kProxyBypassList, ""); |
-} |
-#endif // defined(OS_ANDROID) || defined(OS_IOS) |
- |
std::string OffTheRecordProfileImpl::GetProfileName() { |
// Incognito profile should not return the profile name. |
return std::string(); |