| Index: trunk/src/android_webview/browser/aw_browser_context.cc
|
| ===================================================================
|
| --- trunk/src/android_webview/browser/aw_browser_context.cc (revision 273823)
|
| +++ trunk/src/android_webview/browser/aw_browser_context.cc (working copy)
|
| @@ -16,7 +16,6 @@
|
| #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"
|
| @@ -95,23 +94,21 @@
|
|
|
| void AwBrowserContext::PreMainMessageLoopRun() {
|
| cookie_store_ = CreateCookieStore(this);
|
| -#if defined(SPDY_PROXY_AUTH_ORIGIN)
|
| + DataReductionProxySettings::SetAllowed(true);
|
| + DataReductionProxySettings::SetPromoAllowed(false);
|
| data_reduction_proxy_settings_.reset(
|
| - new DataReductionProxySettings(
|
| - new data_reduction_proxy::DataReductionProxyParams(
|
| - data_reduction_proxy::DataReductionProxyParams::kAllowed)));
|
| -#endif
|
| + new DataReductionProxySettings());
|
| + data_reduction_proxy_settings_->set_fallback_allowed(false);
|
|
|
| url_request_context_getter_ =
|
| new AwURLRequestContextGetter(GetPath(), cookie_store_.get());
|
|
|
| - if (data_reduction_proxy_settings_.get()) {
|
| - scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
|
| - configurator(new data_reduction_proxy::DataReductionProxyConfigTracker(
|
| - url_request_context_getter_->proxy_config_service(),
|
| - BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
|
| - data_reduction_proxy_settings_->SetProxyConfigurator(configurator.Pass());
|
| - }
|
| + scoped_ptr<data_reduction_proxy::DataReductionProxyConfigurator>
|
| + configurator(new data_reduction_proxy::DataReductionProxyConfigTracker(
|
| + url_request_context_getter_->proxy_config_service(),
|
| + BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO)));
|
| + data_reduction_proxy_settings_->SetProxyConfigurator(configurator.Pass());
|
| +
|
| visitedlink_master_.reset(
|
| new visitedlink::VisitedLinkMaster(this, this, false));
|
| visitedlink_master_->Init();
|
| @@ -186,15 +183,13 @@
|
|
|
| user_prefs::UserPrefs::Set(this, user_pref_service_.get());
|
|
|
| - if (data_reduction_proxy_settings_.get()) {
|
| - data_reduction_proxy_settings_->InitDataReductionProxySettings(
|
| - user_pref_service_.get(),
|
| - user_pref_service_.get(),
|
| - GetRequestContext());
|
| + data_reduction_proxy_settings_->InitDataReductionProxySettings(
|
| + user_pref_service_.get(),
|
| + user_pref_service_.get(),
|
| + GetRequestContext());
|
|
|
| - data_reduction_proxy_settings_->SetDataReductionProxyEnabled(
|
| - data_reduction_proxy_enabled_);
|
| - }
|
| + data_reduction_proxy_settings_->SetDataReductionProxyEnabled(
|
| + data_reduction_proxy_enabled_);
|
| }
|
|
|
| base::FilePath AwBrowserContext::GetPath() const {
|
|
|