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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 1200383005: Activate prepopulated fieldtrials (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@codegen_field_trials
Patch Set: Created 5 years, 5 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
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/common/variations/variations_util.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index b1cfe0b6d89997f4e84d4136827d74d16974ed71..a4ce436ac37af882eb4f9267d2ab2eb3183c2ad8 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -633,6 +633,16 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() {
CHECK(result) << "Invalid --" << switches::kForceFieldTrials
<< " list specified.";
}
+
+#if !defined(GOOGLE_CHROME_BUILD)
+ if (!command_line->HasSwitch(switches::kDisableFieldTrialTestingConfig) &&
+ !command_line->HasSwitch(switches::kForceFieldTrials) &&
+ !command_line->HasSwitch(switches::kVariationsServerURL)) {
+ bool result = chrome_variations::AssociateDefaultFieldTrialConfig();
+ CHECK(result) << " Enabling field trial testing configuration failed.";
+ }
+#endif // !defined(GOOGLE_CHROME_BUILD)
+
if (command_line->HasSwitch(switches::kForceVariationIds)) {
// Create default variation ids which will always be included in the
// X-Client-Data request header.
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | chrome/common/variations/variations_util.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698