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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 9705074: Supporting command line argument to force field trials (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No more static default group number Created 8 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/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index b4d66831e381592d2eb271c856f32758c16d15e9..7a399a732433aa5e1afc68e9a7b2b865eef4e7dc 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -275,8 +275,8 @@ void NewTabUI::RegisterUserPrefs(PrefService* prefs) {
// static
void NewTabUI::SetupFieldTrials() {
scoped_refptr<base::FieldTrial> trial(
- new base::FieldTrial(kWebStoreLinkExperiment, 3, "Disabled",
- 2012, 6, 1));
+ base::FieldTrialList::GetFieldTrialInstance(
+ kWebStoreLinkExperiment, 3, "Disabled", NULL, 2012, 6, 1));
// Try to give the user a consistent experience, if possible.
if (base::FieldTrialList::IsOneTimeRandomizationEnabled())

Powered by Google App Engine
This is Rietveld 408576698