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

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: Formatting nits 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..3c47e852f6425a2488dea93747999f35394fb532 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())) {
+ flags |= DataReductionProxyParams::kPromoAllowed;
+ }
+#endif
return new DataReductionProxyChromeSettings(
new DataReductionProxyParams(flags));
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | components/data_reduction_proxy/core/common/data_reduction_proxy_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698