summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profiles
diff options
context:
space:
mode:
authorbengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-27 23:18:25 +0000
committerbengr@chromium.org <bengr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-27 23:18:25 +0000
commitf37e941d37e68058b3709465c87c13c73af2420c (patch)
tree6ea360cbd91f9ef8b82e8274fe57c8b66f22c225 /chrome/browser/profiles
parent237207bc88818a5bd8c1a29f9538d6afb7c4e205 (diff)
downloadchromium_src-f37e941d37e68058b3709465c87c13c73af2420c.zip
chromium_src-f37e941d37e68058b3709465c87c13c73af2420c.tar.gz
chromium_src-f37e941d37e68058b3709465c87c13c73af2420c.tar.bz2
Remove round trip from data reduction proxy authentication
BUG=232932 Review URL: https://chromiumcodereview.appspot.com/14994003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202472 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles')
-rw-r--r--chrome/browser/profiles/profile_impl_io_data.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index 00e3b6e..fca9dd3 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -44,6 +44,10 @@
#include "net/url_request/url_request_job_factory_impl.h"
#include "webkit/quota/special_storage_policy.h"
+#if defined(OS_ANDROID)
+#include "chrome/app/android/chrome_data_reduction_proxy_android.h"
+#endif
+
namespace {
net::BackendType ChooseCacheBackendType() {
@@ -417,6 +421,10 @@ void ProfileImplIOData::InitializeInternal(
network_session_params, main_backend);
main_cache->InitializeInfiniteCache(lazy_params_->infinite_cache_path);
+#if defined(OS_ANDROID)
+ ChromeDataReductionProxyAndroid::Init(main_cache->GetSession());
+#endif
+
if (record_mode || playback_mode) {
main_cache->set_mode(
record_mode ? net::HttpCache::RECORD : net::HttpCache::PLAYBACK);