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

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: 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
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread.cc
diff --git a/chrome/browser/io_thread.cc b/chrome/browser/io_thread.cc
index 3fe1e887175149cfd5455bec6d5e4173253826a6..9e51c9cc810c305f6e6007b8934ad6e08722e56d 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(
+ 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(
« no previous file with comments | « no previous file | chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698