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

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: Add unit test Created 6 years 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 f88e506700efe921e35196f6f9fa07f3faf73080..a46b8ed6e62e1ac13a4ee1036df9138c7772b75e 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"
@@ -1171,6 +1175,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;
mmenke 2014/12/17 16:32:50 We already have data_reduction_proxy::DataReductio
jeremyim 2014/12/17 17:52:49 This will get cleaned up/refactored in bengr's CL
+ }
+#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