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 ef8d8ccada69f44a348f08479ff86379c8f99f86..dc244c1510db3a74182f21fe99580de050403ee7 100644 |
| --- a/chrome/browser/chrome_browser_main.cc |
| +++ b/chrome/browser/chrome_browser_main.cc |
| @@ -64,6 +64,7 @@ |
| #include "chrome/browser/defaults.h" |
| #include "chrome/browser/first_run/first_run.h" |
| #include "chrome/browser/geolocation/chrome_access_token_store.h" |
| +#include "chrome/browser/google/google_brand.h" |
| #include "chrome/browser/gpu/gpu_profile_cache.h" |
| #include "chrome/browser/gpu/three_d_api_observer.h" |
| #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
| @@ -988,6 +989,14 @@ int ChromeBrowserMainParts::PreCreateThreads() { |
| int ChromeBrowserMainParts::PreCreateThreadsImpl() { |
| TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreCreateThreadsImpl") |
| run_message_loop_ = false; |
| + |
| +// Record whether the machine is domain joined (Win only) in a crash key. This |
|
sky
2016/12/05 21:59:49
Can this be moved to chrome_browser_main_win?
Georges Khalil
2016/12/06 22:26:36
Done.
|
| +// will be used to better identify whether crashes are from enterprise users. |
| +#if defined(OS_WIN) |
| + base::debug::SetCrashKeyValue(crash_keys::kEnrolledToDomain, |
| + base::win::IsEnrolledToDomain() ? "yes" : "no"); |
| +#endif |
| + |
| #if !defined(OS_ANDROID) |
| chrome::MaybeShowInvalidUserDataDirWarningDialog(); |
| #endif // !defined(OS_ANDROID) |