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

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: 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 b4d302300e173ac3eac986f366b014c1a89ed6b6..9b0a08357b3159b4969dbe9059286565d4cdb7ad 100644
--- a/chrome_frame/chrome_frame_automation.cc
+++ b/chrome_frame/chrome_frame_automation.cc
@@ -1034,8 +1034,9 @@ 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::FieldTrial::CreateInstance("ChromeShutdownDelay", 1000,
+ kWithDelayFieldTrialName, 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