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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 11363062: Create a new-installs-only uniformity trial. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Change start date to Nov 6 Created 8 years, 1 month 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 | « chrome/browser/chrome_browser_field_trials.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 3f759042a41a8251de84d105f1f7c3a9d7ec239e..35a8ffd9e38da9da90b622ee42f54f108f7b492a 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -575,7 +575,11 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
browser_process_->variations_service();
variations_service->CreateTrialsFromSeed(browser_process_->local_state());
- browser_field_trials_.SetupFieldTrials();
+ const int64 install_date = local_state_->GetInt64(
+ prefs::kUninstallMetricsInstallDate);
+ // This must be called after the pref is initialized.
+ DCHECK(install_date);
+ browser_field_trials_.SetupFieldTrials(base::Time::FromTimeT(install_date));
SetupPlatformFieldTrials();
« no previous file with comments | « chrome/browser/chrome_browser_field_trials.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698