Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2013)

Unified Diff: android_webview/browser/aw_browser_context.cc

Issue 286013002: Added alternative configuration for the data reduction proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_browser_context.cc
diff --git a/android_webview/browser/aw_browser_context.cc b/android_webview/browser/aw_browser_context.cc
index 4efdd6c0b7e6a1ce6290197670ffd2accb59894b..2d98bc256e404d3bf41b00011019285398696729 100644
--- a/android_webview/browser/aw_browser_context.cc
+++ b/android_webview/browser/aw_browser_context.cc
@@ -16,6 +16,7 @@
#include "base/prefs/pref_service_factory.h"
#include "components/autofill/core/common/autofill_pref_names.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_config_service.h"
+#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_prefs.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
#include "components/user_prefs/user_prefs.h"
@@ -94,11 +95,10 @@ void AwBrowserContext::SetDataReductionProxyEnabled(bool enabled) {
void AwBrowserContext::PreMainMessageLoopRun() {
cookie_store_ = CreateCookieStore(this);
- DataReductionProxySettings::SetAllowed(true);
- DataReductionProxySettings::SetPromoAllowed(false);
data_reduction_proxy_settings_.reset(
- new DataReductionProxySettings());
- data_reduction_proxy_settings_->set_fallback_allowed(false);
+ new DataReductionProxySettings(
+ new data_reduction_proxy::DataReductionProxyParams(
+ true, false, false, false)));
sgurun-gerrit only 2014/05/20 23:55:21 nit: I think this large list of booleans makes it
url_request_context_getter_ =
new AwURLRequestContextGetter(GetPath(), cookie_store_.get());

Powered by Google App Engine
This is Rietveld 408576698