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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 2514483002: Add a crash key to record whether a windows machine is domain joined. (Closed)
Patch Set: Created 4 years, 1 month 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/crash_keys.h » ('j') | chrome/common/crash_keys.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 ef8d8ccada69f44a348f08479ff86379c8f99f86..e87c447cbbeff73071900e44ec75f3f9452c132c 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
+// will be used to better identify whether crashes are from enterprise users.
+#if defined(OS_WIN)
+ base::debug::SetCrashKeyValue(crash_keys::kDomainJoined,
+ base::win::IsEnrolledToDomain() ? "yes" : "no");
+#endif
+
#if !defined(OS_ANDROID)
chrome::MaybeShowInvalidUserDataDirWarningDialog();
#endif // !defined(OS_ANDROID)
« no previous file with comments | « no previous file | chrome/common/crash_keys.h » ('j') | chrome/common/crash_keys.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698