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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java

Issue 2051423004: UMA cellular experiment by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java b/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java
index c1f2e49a70baa9bbf41f4a522426431d5a519ad7..28e4ab37cc4e1b8f2fff7979ed17febf77baf2bb 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/metrics/UmaSessionStats.java
@@ -173,10 +173,12 @@ public class UmaSessionStats implements NetworkChangeNotifier.ConnectionTypeObse
private void updatePreferences() {
PrivacyPreferencesManager prefManager = PrivacyPreferencesManager.getInstance(mContext);
- // Update cellular experiment preference.
- boolean cellularExperiment = TextUtils.equals("true",
- VariationsAssociatedData.getVariationParamValue(
- "UMA_EnableCellularLogUpload", "Enabled"));
+ // Update cellular experiment preference. Cellular experiment is ON by default.
+ boolean cellularExperiment = true;
+ if (TextUtils.equals("false", VariationsAssociatedData.getVariationParamValue(
+ "UMA_EnableCellularLogUpload", "Enabled"))) {
+ cellularExperiment = false;
+ }
prefManager.setCellularExperiment(cellularExperiment);
// Migrate to new preferences for cellular experiment.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698