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

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: Fixed some ooopss... Created 8 years, 8 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..9a649c0f7943ffa3d275491c0e8a7ab93734a54f 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::FactoryGetFieldTrial(
+ "ChromeShutdownDelay", 1000, kWithDelayFieldTrialName,
+ 2013, 3, 7, NULL);
// Be consistent for this client. Note that this will only have an effect
// once the client id is persisted. See http://crbug.com/117188
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698