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

Side by Side 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: Add key to 2 other places. Created 4 years 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 unified diff | Download patch
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.cc ('k') | chrome/common/crash_keys.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #include "chrome/browser/component_updater/pepper_flash_component_installer.h" 57 #include "chrome/browser/component_updater/pepper_flash_component_installer.h"
58 #include "chrome/browser/component_updater/recovery_component_installer.h" 58 #include "chrome/browser/component_updater/recovery_component_installer.h"
59 #include "chrome/browser/component_updater/sth_set_component_installer.h" 59 #include "chrome/browser/component_updater/sth_set_component_installer.h"
60 #include "chrome/browser/component_updater/subresource_filter_component_installe r.h" 60 #include "chrome/browser/component_updater/subresource_filter_component_installe r.h"
61 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h " 61 #include "chrome/browser/component_updater/supervised_user_whitelist_installer.h "
62 #include "chrome/browser/component_updater/swiftshader_component_installer.h" 62 #include "chrome/browser/component_updater/swiftshader_component_installer.h"
63 #include "chrome/browser/component_updater/widevine_cdm_component_installer.h" 63 #include "chrome/browser/component_updater/widevine_cdm_component_installer.h"
64 #include "chrome/browser/defaults.h" 64 #include "chrome/browser/defaults.h"
65 #include "chrome/browser/first_run/first_run.h" 65 #include "chrome/browser/first_run/first_run.h"
66 #include "chrome/browser/geolocation/chrome_access_token_store.h" 66 #include "chrome/browser/geolocation/chrome_access_token_store.h"
67 #include "chrome/browser/google/google_brand.h"
67 #include "chrome/browser/gpu/gpu_profile_cache.h" 68 #include "chrome/browser/gpu/gpu_profile_cache.h"
68 #include "chrome/browser/gpu/three_d_api_observer.h" 69 #include "chrome/browser/gpu/three_d_api_observer.h"
69 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" 70 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h"
70 #include "chrome/browser/memory/tab_manager.h" 71 #include "chrome/browser/memory/tab_manager.h"
71 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 72 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
72 #include "chrome/browser/metrics/field_trial_synchronizer.h" 73 #include "chrome/browser/metrics/field_trial_synchronizer.h"
73 #include "chrome/browser/metrics/thread_watcher.h" 74 #include "chrome/browser/metrics/thread_watcher.h"
74 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h" 75 #include "chrome/browser/nacl_host/nacl_browser_delegate_impl.h"
75 #include "chrome/browser/net/crl_set_fetcher.h" 76 #include "chrome/browser/net/crl_set_fetcher.h"
76 #include "chrome/browser/performance_monitor/performance_monitor.h" 77 #include "chrome/browser/performance_monitor/performance_monitor.h"
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 982
982 // Create an instance of GpuModeManager to watch gpu mode pref change. 983 // Create an instance of GpuModeManager to watch gpu mode pref change.
983 g_browser_process->gpu_mode_manager(); 984 g_browser_process->gpu_mode_manager();
984 985
985 return result_code_; 986 return result_code_;
986 } 987 }
987 988
988 int ChromeBrowserMainParts::PreCreateThreadsImpl() { 989 int ChromeBrowserMainParts::PreCreateThreadsImpl() {
989 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreCreateThreadsImpl") 990 TRACE_EVENT0("startup", "ChromeBrowserMainParts::PreCreateThreadsImpl")
990 run_message_loop_ = false; 991 run_message_loop_ = false;
992
993 // 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.
994 // will be used to better identify whether crashes are from enterprise users.
995 #if defined(OS_WIN)
996 base::debug::SetCrashKeyValue(crash_keys::kEnrolledToDomain,
997 base::win::IsEnrolledToDomain() ? "yes" : "no");
998 #endif
999
991 #if !defined(OS_ANDROID) 1000 #if !defined(OS_ANDROID)
992 chrome::MaybeShowInvalidUserDataDirWarningDialog(); 1001 chrome::MaybeShowInvalidUserDataDirWarningDialog();
993 #endif // !defined(OS_ANDROID) 1002 #endif // !defined(OS_ANDROID)
994 if (!PathService::Get(chrome::DIR_USER_DATA, &user_data_dir_)) 1003 if (!PathService::Get(chrome::DIR_USER_DATA, &user_data_dir_))
995 return chrome::RESULT_CODE_MISSING_DATA; 1004 return chrome::RESULT_CODE_MISSING_DATA;
996 1005
997 // Force MediaCaptureDevicesDispatcher to be created on UI thread. 1006 // Force MediaCaptureDevicesDispatcher to be created on UI thread.
998 MediaCaptureDevicesDispatcher::GetInstance(); 1007 MediaCaptureDevicesDispatcher::GetInstance();
999 1008
1000 // Android's first run is done in Java instead of native. 1009 // Android's first run is done in Java instead of native.
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
2120 chromeos::CrosSettings::Shutdown(); 2129 chromeos::CrosSettings::Shutdown();
2121 #endif // defined(OS_CHROMEOS) 2130 #endif // defined(OS_CHROMEOS)
2122 #endif // defined(OS_ANDROID) 2131 #endif // defined(OS_ANDROID)
2123 } 2132 }
2124 2133
2125 // Public members: 2134 // Public members:
2126 2135
2127 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 2136 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
2128 chrome_extra_parts_.push_back(parts); 2137 chrome_extra_parts_.push_back(parts);
2129 } 2138 }
OLDNEW
« no previous file with comments | « chrome/app/chrome_crash_reporter_client_win.cc ('k') | chrome/common/crash_keys.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698