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

Unified Diff: chrome/browser/profiles/profile_impl_io_data.cc

Issue 893003002: Data Reduction Proxy class ownership updates and Settings cleanup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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: chrome/browser/profiles/profile_impl_io_data.cc
diff --git a/chrome/browser/profiles/profile_impl_io_data.cc b/chrome/browser/profiles/profile_impl_io_data.cc
index c6522a884b7aeb5e11d1b53ba43faa4e6627740a..32baaa9e0e2f57c04b9befc828c4a3854ec39834 100644
--- a/chrome/browser/profiles/profile_impl_io_data.cc
+++ b/chrome/browser/profiles/profile_impl_io_data.cc
@@ -38,13 +38,8 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_configurator.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_data.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_prefs.h"
#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics_prefs.h"
-#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
-#include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_names.h"
#include "components/domain_reliability/monitor.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/cookie_store_factory.h"
@@ -174,16 +169,16 @@ void ProfileImplIOData::Handle::Init(
io_data_->set_data_reduction_proxy_io_data(
CreateDataReductionProxyChromeIOData(
- net_log, profile_, profile_->GetPrefs(),
+ net_log, profile_->GetPrefs(),
BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO),
- BrowserThread::GetMessageLoopProxyForThread(
- BrowserThread::UI)).Pass());
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI))
+ .Pass());
DataReductionProxyChromeSettingsFactory::GetForBrowserContext(profile_)->
- InitDataReductionProxySettings(io_data_->data_reduction_proxy_io_data(),
- profile_->GetPrefs(),
- g_browser_process->local_state(),
- profile_->GetRequestContext());
+ InitDataReductionProxySettings(
+ io_data_->data_reduction_proxy_io_data(), profile_->GetPrefs(),
+ profile_->GetRequestContext(),
+ BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI));
}
content::ResourceContext*
@@ -459,8 +454,6 @@ void ProfileImplIOData::InitializeInternal(
main_context->set_net_log(io_thread->net_log());
- data_reduction_proxy_io_data()->Init();
-
network_delegate_ = data_reduction_proxy_io_data()->CreateNetworkDelegate(
chrome_network_delegate.Pass(), true).Pass();

Powered by Google App Engine
This is Rietveld 408576698