| Index: chrome/browser/chrome_browser_main.cc
|
| ===================================================================
|
| --- chrome/browser/chrome_browser_main.cc (revision 111708)
|
| +++ chrome/browser/chrome_browser_main.cc (working copy)
|
| @@ -29,6 +29,7 @@
|
| #include "base/values.h"
|
| #include "build/build_config.h"
|
| #include "chrome/browser/about_flags.h"
|
| +#include "chrome/browser/auto_launch_trial.h"
|
| #include "chrome/browser/background/background_mode_manager.h"
|
| #include "chrome/browser/browser_process_impl.h"
|
| #include "chrome/browser/browser_shutdown.h"
|
| @@ -1079,6 +1080,24 @@
|
| }
|
| }
|
|
|
| +void ChromeBrowserMainParts::AutoLaunchChromeFieldTrial() {
|
| + std::string brand;
|
| + google_util::GetBrand(&brand);
|
| +
|
| + // TODO(finnur): Get actual brand codes before checking this in.
|
| +
|
| + // Create a 100% field trial based on the brand code.
|
| + //if (LowerCaseEqualsASCII(brand, "xyzw")) {
|
| + base::FieldTrialList::CreateFieldTrial(kAutoLaunchTrial_Name,
|
| + kAutoLaunchTrial_AutoLaunchGroup);
|
| + /*
|
| + } else if (LowerCaseEqualsASCII(brand, "xyzz")) {
|
| + base::FieldTrialList::CreateFieldTrial(kAutoLaunchTrial_Name,
|
| + kAutoLaunchTrial_ControlGroup);
|
| + }
|
| + */
|
| +}
|
| +
|
| // ChromeBrowserMainParts: |SetupMetricsAndFieldTrials()| related --------------
|
|
|
| // Initializes the metrics service with the configuration for this process,
|
| @@ -1139,6 +1158,7 @@
|
| WarmConnectionFieldTrial();
|
| PredictorFieldTrial();
|
| DefaultAppsFieldTrial();
|
| + AutoLaunchChromeFieldTrial();
|
| }
|
|
|
| // -----------------------------------------------------------------------------
|
|
|