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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc

Issue 412143009: Moved data reduction proxy initialization logic to ProfileImplIOData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc
index cf8ed375a02d29f3c6bdedb9d4ec71275d10865f..57c356c1a59c2e6d7f9508ad37d5ab84322f663a 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/memory/singleton.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
-#include "chrome/browser/profiles/profile.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_params.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_usage_stats.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -53,7 +52,6 @@ DataReductionProxyChromeSettingsFactory::
KeyedService* DataReductionProxyChromeSettingsFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- Profile* profile = static_cast<Profile*>(context);
int flags = DataReductionProxyParams::kFallbackAllowed;
if (DataReductionProxyParams::IsIncludedInFieldTrial())
flags |= DataReductionProxyParams::kAllowed;
@@ -67,8 +65,5 @@ KeyedService* DataReductionProxyChromeSettingsFactory::BuildServiceInstanceFor(
DataReductionProxyParams* params = new DataReductionProxyParams(flags);
// Takes ownership of params.
willchan no longer on Chromium 2014/07/29 00:26:56 You don't have to fix this, but you could get rid
bengr 2014/07/29 21:29:52 I won't fix this in this CL, but I tightened the c
- DataReductionProxyChromeSettings* settings =
- new DataReductionProxyChromeSettings(params);
- settings->InitDataReductionProxySettings(profile);
- return settings;
+ return new DataReductionProxyChromeSettings(params);
}

Powered by Google App Engine
This is Rietveld 408576698