Chromium Code Reviews| Index: chrome/browser/chrome_browser_main.cc |
| =================================================================== |
| --- chrome/browser/chrome_browser_main.cc (revision 209140) |
| +++ chrome/browser/chrome_browser_main.cc (working copy) |
| @@ -610,11 +610,13 @@ |
| // Ensure any field trials specified on the command line are initialized. |
| // Also stop the metrics service so that we don't pollute UMA. |
| if (command_line->HasSwitch(switches::kForceFieldTrials)) { |
| - std::string persistent = command_line->GetSwitchValueASCII( |
| - switches::kForceFieldTrials); |
| - bool ret = base::FieldTrialList::CreateTrialsFromString(persistent); |
| - CHECK(ret) << "Invalid --" << switches::kForceFieldTrials << |
| - " list specified."; |
| + // Create field trials without activating them, so that this behaves in a |
| + // consistent manner with field trials created from the server. |
| + const bool result = base::FieldTrialList::CreateTrialsFromString( |
|
Nico
2013/06/28 19:53:38
optional nit: const looks weird here (since the va
Alexei Svitkine (slow)
2013/07/02 18:14:25
Done.
|
| + command_line->GetSwitchValueASCII(switches::kForceFieldTrials), |
| + base::FieldTrialList::DONT_ACTIVATE_TRIALS); |
| + CHECK(result) << "Invalid --" << switches::kForceFieldTrials |
| + << " list specified."; |
| } |
| chrome_variations::VariationsService* variations_service = |