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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 213363004: Resetting metrics ids on clump detection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index b71cd5131bd93debb20a904339fc24ab7f062b7b..be62ac5235f3d7a422a9df8fc8356054ebc56fb6 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -578,6 +578,10 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
// Initialize FieldTrialList to support FieldTrials that use one-time
// randomization.
MetricsService* metrics = browser_process_->metrics_service();
+
+ if (local_state_->GetBoolean(prefs::kMetricsCloneDetected))
+ metrics->ResetVariationsState();
Alexei Svitkine (slow) 2014/03/26 21:34:50 Hmm, I'd actually prefer that the logic be entirel
jwd 2014/03/28 16:23:49 Done.
+
MetricsService::ReportingState reporting_state =
IsMetricsReportingEnabled() ? MetricsService::REPORTING_ENABLED :
MetricsService::REPORTING_DISABLED;
« no previous file with comments | « no previous file | chrome/browser/metrics/cloned_install_detector.cc » ('j') | chrome/browser/metrics/cloned_install_detector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698