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

Unified Diff: chrome/browser/io_thread.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/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 3fe1e887175149cfd5455bec6d5e4173253826a6..4e2e214fe7ba981ea2839416bebcb381a5e61843 100644
--- a/chrome/browser/io_thread.cc
+++ b/chrome/browser/io_thread.cc
@@ -105,6 +105,10 @@
#include "net/ocsp/nss_ocsp.h"
#endif
+#if defined(OS_ANDROID)
+#include "base/android/build_info.h"
+#endif
+
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/net/cert_verify_proc_chromeos.h"
#include "chromeos/network/host_resolver_impl_chromeos.h"
@@ -1183,6 +1187,13 @@ void IOThread::SetupDataReductionProxy() {
IsIncludedInHoldbackFieldTrial()) {
flags |= data_reduction_proxy::DataReductionProxyParams::kHoldback;
}
+#if defined(OS_ANDROID)
+ if (data_reduction_proxy::DataReductionProxyParams::
+ IsIncludedInAndroidOnePromoFieldTrial(
bengr 2015/01/05 18:21:48 indent 4?
jeremyim 2015/01/05 21:36:05 Done.
+ base::android::BuildInfo::GetInstance()->android_build_fp())) {
+ flags |= data_reduction_proxy::DataReductionProxyParams::kPromoAllowed;
+ }
+#endif
globals_->data_reduction_proxy_params.reset(
new data_reduction_proxy::DataReductionProxyParams(flags));
globals_->data_reduction_proxy_auth_request_handler.reset(

Powered by Google App Engine
This is Rietveld 408576698