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

Unified Diff: chrome/browser/instant/instant_field_trial.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/instant/instant_field_trial.cc
diff --git a/chrome/browser/instant/instant_field_trial.cc b/chrome/browser/instant/instant_field_trial.cc
index dee598f66a60cab4444e1bf7412e30a50d7283c4..50f9d362efd9af8b6ab43ec2069d5a5d789a626e 100644
--- a/chrome/browser/instant/instant_field_trial.cc
+++ b/chrome/browser/instant/instant_field_trial.cc
@@ -27,8 +27,8 @@ int g_control = 0;
// static
void InstantFieldTrial::Activate() {
- scoped_refptr<base::FieldTrial> trial(
- new base::FieldTrial("Instant", 1000, "Inactive", 2013, 7, 1));
+ scoped_refptr<base::FieldTrial> trial(base::FieldTrial::CreateInstance(
+ "Instant", 1000, "Inactive", 2013, 7, 1));
// Try to give the user a consistent experience, if possible.
if (base::FieldTrialList::IsOneTimeRandomizationEnabled())

Powered by Google App Engine
This is Rietveld 408576698