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

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..e47855ab5f7e823e608d9dd19f5af0d99a63d0b9 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -578,11 +578,12 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
// Initialize FieldTrialList to support FieldTrials that use one-time
// randomization.
MetricsService* metrics = browser_process_->metrics_service();
+
MetricsService::ReportingState reporting_state =
IsMetricsReportingEnabled() ? MetricsService::REPORTING_ENABLED :
MetricsService::REPORTING_DISABLED;
- if (reporting_state == MetricsService::REPORTING_ENABLED)
- metrics->ForceClientIdCreation(); // Needed below.
+ metrics->InitializeVariationsState(
+ reporting_state == MetricsService::REPORTING_ENABLED);
field_trial_list_.reset(
new base::FieldTrialList(
metrics->CreateEntropyProvider(reporting_state).release()));
« no previous file with comments | « no previous file | chrome/browser/metrics/cloned_install_detector.cc » ('j') | chrome/browser/metrics/metrics_service.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698