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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.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: Created 5 years, 11 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 90f23841975f36e07aaa21c7eeed3ca4de02ddae..33fcb4237d046d911407576cf20846218dffa799 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,19 +7,8 @@
#include "base/bind.h"
#include "base/memory/singleton.h"
#include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
-#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usage_stats.h"
-#include "components/data_reduction_proxy/core/common/data_reduction_proxy_params.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
-#include "content/public/browser/browser_thread.h"
-
-#if defined(OS_ANDROID)
-#include "base/android/build_info.h"
-#endif
-
-using content::BrowserThread;
-using data_reduction_proxy::DataReductionProxyParams;
-using data_reduction_proxy::DataReductionProxyUsageStats;
// static
DataReductionProxyChromeSettings*
@@ -56,21 +45,5 @@ DataReductionProxyChromeSettingsFactory::
KeyedService* DataReductionProxyChromeSettingsFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
- int flags = DataReductionProxyParams::kAllowed |
- DataReductionProxyParams::kFallbackAllowed |
- DataReductionProxyParams::kAlternativeAllowed;
- if (DataReductionProxyParams::IsIncludedInPromoFieldTrial())
- flags |= DataReductionProxyParams::kPromoAllowed;
- if (DataReductionProxyParams::IsIncludedInHoldbackFieldTrial())
- flags |= DataReductionProxyParams::kHoldback;
-#if defined(OS_ANDROID)
- if (DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial(
bengr 2015/02/03 21:51:58 Where is this now?
jeremyim 2015/02/04 01:31:20 This now lives in CreateDataReductionProxyChromeIO
- base::android::BuildInfo::GetInstance()->android_build_fp())) {
- flags |= DataReductionProxyParams::kPromoAllowed;
- }
-#endif
-
- return new DataReductionProxyChromeSettings(
- scoped_ptr<DataReductionProxyParams>(new DataReductionProxyParams(flags))
- .Pass());
+ return new DataReductionProxyChromeSettings();
}

Powered by Google App Engine
This is Rietveld 408576698