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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1090813005: Add a mechanism to force parameters of a group to a specific value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index a76aad93798539087c964a55c5692541c458613e..581907034a8dbcf13252b42dafd6f16e0790d1ff 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -637,6 +637,11 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
base::FieldTrial::EnableBenchmarking();
}
+ if (command_line->HasSwitch(switches::kForceFieldTrialParams)) {
+ variations::AssociateParamsFromString(
+ command_line->GetSwitchValueASCII(switches::kForceFieldTrialParams));
Alexei Svitkine (slow) 2015/04/29 15:34:25 Nit: Indent 2 more per style guide.
danduong 2015/04/29 21:00:09 Done.
+ }
+
// Ensure any field trials specified on the command line are initialized.
if (command_line->HasSwitch(switches::kForceFieldTrials)) {
std::set<std::string> unforceable_field_trials;
« no previous file with comments | « no previous file | components/variations/variations_associated_data.h » ('j') | components/variations/variations_associated_data.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698