Chromium Code Reviews| Index: chrome/browser/chrome_browser_main.cc |
| diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
| index d80d4e405e7125cde7d6608bc80c32e8a0b99053..8b89807dd0807a63a52dc167776526928f62b574 100644 |
| --- a/chrome/browser/chrome_browser_main.cc |
| +++ b/chrome/browser/chrome_browser_main.cc |
| @@ -149,6 +149,13 @@ |
| #include "ui/base/resource/resource_bundle.h" |
| #include "ui/strings/grit/app_locale_settings.h" |
| +#if OFFICIAL_BUILD |
|
Alexei Svitkine (slow)
2015/08/03 18:23:10
You switched from GOOGLE_CHROME_BUILD to OFFICIAL_
danduong
2015/08/03 18:30:59
I was basically copying the convention from tracin
|
| +#undef FIELDTRIAL_TESTING_IS_OFFICIAL_BUILD |
| +#define FIELDTRIAL_TESTING_IS_OFFICIAL_BUILD 1 |
| +#elif !defined(FIELDTRIAL_TESTING_IS_OFFICIAL_BUILD) |
| +#define FIELDTRIAL_TESTING_IS_OFFICIAL_BUILD 0 |
| +#endif |
|
Alexei Svitkine (slow)
2015/08/03 18:23:10
Hmm, this is a bit messy to put at the top of this
danduong
2015/08/03 20:52:49
Moved it into gyp/gn
|
| + |
| #if defined(OS_ANDROID) |
| #include "chrome/browser/android/dev_tools_discovery_provider_android.h" |
| #include "chrome/browser/metrics/thread_watcher_android.h" |
| @@ -635,12 +642,12 @@ void ChromeBrowserMainParts::SetupMetricsAndFieldTrials() { |
| << " list specified."; |
| } |
| -#if !defined(GOOGLE_CHROME_BUILD) |
| +#if !FIELDTRIAL_TESTING_IS_OFFICIAL_BUILD |
| if (!command_line->HasSwitch(switches::kDisableFieldTrialTestingConfig) && |
| !command_line->HasSwitch(switches::kForceFieldTrials) && |
| !command_line->HasSwitch(switches::kVariationsServerURL)) |
| chrome_variations::AssociateDefaultFieldTrialConfig(); |
| -#endif // !defined(GOOGLE_CHROME_BUILD) |
| +#endif // !FIELDTRIAL_TESTING_IS_OFFICIAL_BUILD |
| if (command_line->HasSwitch(switches::kForceVariationIds)) { |
| // Create default variation ids which will always be included in the |