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

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

Issue 806053003: Set the Flywheel promo rate for Android One devices to be 100%. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 c855b7abf876f20bb1d594540a3fffdc0bc5d51f..9e3070c8600dd68fbad48e4617bb7277cd1adecd 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
@@ -13,6 +13,10 @@
#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;
@@ -59,6 +63,12 @@ KeyedService* DataReductionProxyChromeSettingsFactory::BuildServiceInstanceFor(
flags |= DataReductionProxyParams::kPromoAllowed;
if (DataReductionProxyParams::IsIncludedInHoldbackFieldTrial())
flags |= DataReductionProxyParams::kHoldback;
+#if defined(OS_ANDROID)
+ if (DataReductionProxyParams::IsIncludedInAndroidOnePromoFieldTrial(
+ base::android::BuildInfo::GetInstance()->android_build_fp())) {
bengr 2015/01/05 18:21:48 indent 4 more
jeremyim 2015/01/05 21:36:05 Done.
+ flags |= DataReductionProxyParams::kPromoAllowed;
+ }
+#endif
return new DataReductionProxyChromeSettings(
new DataReductionProxyParams(flags));

Powered by Google App Engine
This is Rietveld 408576698