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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 17945002: Make --force-fieldtrials not activate them in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 208942)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -612,7 +612,9 @@
if (command_line->HasSwitch(switches::kForceFieldTrials)) {
std::string persistent = command_line->GetSwitchValueASCII(
switches::kForceFieldTrials);
- bool ret = base::FieldTrialList::CreateTrialsFromString(persistent);
+ // Create field trials without activating them, so that this behaves in a
+ // consitent manner with field trials created from the server.
+ bool ret = base::FieldTrialList::CreateTrialsFromString(persistent, false);
CHECK(ret) << "Invalid --" << switches::kForceFieldTrials <<
" list specified.";
}

Powered by Google App Engine
This is Rietveld 408576698