| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "android_webview/browser/aw_browser_context.h" | 5 #include "android_webview/browser/aw_browser_context.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_form_database_service.h" | 7 #include "android_webview/browser/aw_form_database_service.h" |
| 8 #include "android_webview/browser/aw_pref_store.h" | 8 #include "android_webview/browser/aw_pref_store.h" |
| 9 #include "android_webview/browser/aw_quota_manager_bridge.h" | 9 #include "android_webview/browser/aw_quota_manager_bridge.h" |
| 10 #include "android_webview/browser/aw_resource_context.h" | 10 #include "android_webview/browser/aw_resource_context.h" |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 pref_service_factory.set_user_prefs(make_scoped_refptr(new AwPrefStore())); | 209 pref_service_factory.set_user_prefs(make_scoped_refptr(new AwPrefStore())); |
| 210 pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError)); | 210 pref_service_factory.set_read_error_callback(base::Bind(&HandleReadError)); |
| 211 user_pref_service_ = pref_service_factory.Create(pref_registry).Pass(); | 211 user_pref_service_ = pref_service_factory.Create(pref_registry).Pass(); |
| 212 | 212 |
| 213 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); | 213 user_prefs::UserPrefs::Set(this, user_pref_service_.get()); |
| 214 | 214 |
| 215 if (data_reduction_proxy_settings_.get()) { | 215 if (data_reduction_proxy_settings_.get()) { |
| 216 data_reduction_proxy_settings_->InitDataReductionProxySettings( | 216 data_reduction_proxy_settings_->InitDataReductionProxySettings( |
| 217 user_pref_service_.get(), | 217 user_pref_service_.get(), |
| 218 GetRequestContext()); | 218 GetRequestContext()); |
| 219 data_reduction_proxy_settings_->MaybeActivateDataReductionProxy(true); |
| 219 | 220 |
| 220 SetDataReductionProxyEnabled(data_reduction_proxy_enabled_); | 221 SetDataReductionProxyEnabled(data_reduction_proxy_enabled_); |
| 221 } | 222 } |
| 222 } | 223 } |
| 223 | 224 |
| 224 base::FilePath AwBrowserContext::GetPath() const { | 225 base::FilePath AwBrowserContext::GetPath() const { |
| 225 return context_storage_path_; | 226 return context_storage_path_; |
| 226 } | 227 } |
| 227 | 228 |
| 228 bool AwBrowserContext::IsOffTheRecord() const { | 229 bool AwBrowserContext::IsOffTheRecord() const { |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 data_reduction_proxy_statistics_ = | 307 data_reduction_proxy_statistics_ = |
| 307 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>( | 308 scoped_ptr<data_reduction_proxy::DataReductionProxyStatisticsPrefs>( |
| 308 new data_reduction_proxy::DataReductionProxyStatisticsPrefs( | 309 new data_reduction_proxy::DataReductionProxyStatisticsPrefs( |
| 309 user_pref_service_.get(), | 310 user_pref_service_.get(), |
| 310 base::MessageLoopProxy::current(), | 311 base::MessageLoopProxy::current(), |
| 311 commit_delay)); | 312 commit_delay)); |
| 312 } | 313 } |
| 313 } | 314 } |
| 314 | 315 |
| 315 } // namespace android_webview | 316 } // namespace android_webview |
| OLD | NEW |