OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // Implementation of wrapper around common crash reporting. | 5 // Implementation of wrapper around common crash reporting. |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | |
9 #include "base/file_version_info.h" | 8 #include "base/file_version_info.h" |
10 #include "base/win_util.h" | 9 #include "base/win_util.h" |
11 #include "chrome/installer/util/google_update_settings.h" | 10 #include "chrome/installer/util/google_update_settings.h" |
12 #include "chrome/installer/util/install_util.h" | 11 #include "chrome/installer/util/install_util.h" |
13 #include "chrome_frame/chrome_frame_reporting.h" | 12 #include "chrome_frame/chrome_frame_reporting.h" |
14 #include "chrome_frame/exception_barrier.h" | 13 #include "chrome_frame/exception_barrier.h" |
15 #include "chrome_frame/utils.h" | 14 #include "chrome_frame/utils.h" |
16 | 15 |
17 // Well known SID for the system principal. | 16 // Well known SID for the system principal. |
18 const wchar_t kSystemPrincipalSid[] = L"S-1-5-18"; | 17 const wchar_t kSystemPrincipalSid[] = L"S-1-5-18"; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 87 } |
89 | 88 |
90 return InitializeVectoredCrashReporting(false, user_sid.c_str(), | 89 return InitializeVectoredCrashReporting(false, user_sid.c_str(), |
91 temp_directory.value(), GetCustomInfo(dll_path)); | 90 temp_directory.value(), GetCustomInfo(dll_path)); |
92 } | 91 } |
93 | 92 |
94 bool ShutdownCrashReporting() { | 93 bool ShutdownCrashReporting() { |
95 ExceptionBarrierConfig::set_enabled(false); | 94 ExceptionBarrierConfig::set_enabled(false); |
96 return ShutdownVectoredCrashReporting(); | 95 return ShutdownVectoredCrashReporting(); |
97 } | 96 } |
OLD | NEW |