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

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: 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 da54d5621a5ea52a354af29a8073e7908c829c0e..807d3f41712982a5db2c292f052a855c2ac8c0fa 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -272,8 +272,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::FieldTrial::CreateInstance(kWebStoreLinkExperiment, 3, "Disabled",
+ 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