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

Unified Diff: chrome_frame/chrome_frame_automation.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_frame/chrome_frame_automation.cc
diff --git a/chrome_frame/chrome_frame_automation.cc b/chrome_frame/chrome_frame_automation.cc
index 88f5f9c5a6677559e3c0f99378d5d72241509182..a3951e420a9210ea74b694874add5d46747cd49e 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -1040,8 +1040,10 @@ void ChromeFrameAutomationClient::InitializeFieldTrials() {
if (!trial) {
// Do one-time initialization of the field trial here.
// TODO(robertshield): End the field trial before March 7th 2013.
- scoped_refptr<base::FieldTrial> new_trial = new base::FieldTrial(
- "ChromeShutdownDelay", 1000, kWithDelayFieldTrialName, 2013, 3, 7);
+ scoped_refptr<base::FieldTrial> new_trial =
+ base::FieldTrialList::GetFieldTrialInstance(
+ "ChromeShutdownDelay", 1000, kWithDelayFieldTrialName, NULL,
+ 2013, 3, 7);
// Be consistent for this client. Note that this will only have an effect
// once the client id is persisted. See http://crbug.com/117188

Powered by Google App Engine
This is Rietveld 408576698