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

Unified Diff: chrome/browser/browser_main.cc

Issue 7360001: Allow one-time randomization in field trials to work even if metrics are disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix Created 9 years, 5 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/metrics/metrics_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index 5c10233a0518c1bfa5713bd53f257ffa2cb9cf01..e742ca0a3fcde6dd2d59680a48ddcd84d28efdc7 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -273,9 +273,10 @@ MetricsService* BrowserMainParts::SetupMetricsAndFieldTrials(
MetricsService* metrics = InitializeMetrics(parsed_command_line, local_state);
// Initialize FieldTrialList to support FieldTrials that use one-time
- // randomization. The client ID will be empty if the user has not opted
- // to send metrics.
- field_trial_list_.reset(new base::FieldTrialList(metrics->GetClientId()));
+ // randomization. The client ID will not be empty even if the user has not
jar (doing other things) 2011/07/18 17:33:49 This appears problematic from a privacy perspectiv
+ // opted to send metrics.
+ field_trial_list_.reset(
+ new base::FieldTrialList(metrics->GetClientIdNonEmpty()));
SetupFieldTrials(metrics->recording_active(),
local_state->IsManagedPreference(
« no previous file with comments | « no previous file | chrome/browser/metrics/metrics_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698