OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "components/breakpad/breakpad_win.h" | 5 #include "components/breakpad/app/breakpad_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <tchar.h> | 9 #include <tchar.h> |
10 #include <userenv.h> | 10 #include <userenv.h> |
11 #include <winnt.h> | 11 #include <winnt.h> |
12 | 12 |
13 #include <algorithm> | 13 #include <algorithm> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/base_switches.h" | 16 #include "base/base_switches.h" |
17 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/debug/crash_logging.h" | 19 #include "base/debug/crash_logging.h" |
20 #include "base/environment.h" | 20 #include "base/environment.h" |
21 #include "base/memory/scoped_ptr.h" | 21 #include "base/memory/scoped_ptr.h" |
22 #include "base/strings/string16.h" | 22 #include "base/strings/string16.h" |
23 #include "base/strings/string_split.h" | 23 #include "base/strings/string_split.h" |
24 #include "base/strings/string_util.h" | 24 #include "base/strings/string_util.h" |
25 #include "base/strings/stringprintf.h" | 25 #include "base/strings/stringprintf.h" |
26 #include "base/strings/utf_string_conversions.h" | 26 #include "base/strings/utf_string_conversions.h" |
27 #include "base/win/metro.h" | 27 #include "base/win/metro.h" |
28 #include "base/win/pe_image.h" | 28 #include "base/win/pe_image.h" |
29 #include "base/win/registry.h" | 29 #include "base/win/registry.h" |
30 #include "base/win/win_util.h" | 30 #include "base/win/win_util.h" |
31 #include "breakpad/src/client/windows/handler/exception_handler.h" | 31 #include "breakpad/src/client/windows/handler/exception_handler.h" |
32 #include "components/breakpad/breakpad_client.h" | 32 #include "components/breakpad/app/breakpad_client.h" |
33 #include "components/breakpad/hard_error_handler_win.h" | 33 #include "components/breakpad/app/hard_error_handler_win.h" |
34 #include "content/public/common/content_switches.h" | 34 #include "content/public/common/content_switches.h" |
35 #include "content/public/common/result_codes.h" | 35 #include "content/public/common/result_codes.h" |
36 #include "sandbox/win/src/nt_internals.h" | 36 #include "sandbox/win/src/nt_internals.h" |
37 #include "sandbox/win/src/sidestep/preamble_patcher.h" | 37 #include "sandbox/win/src/sidestep/preamble_patcher.h" |
38 | 38 |
39 // userenv.dll is required for GetProfileType(). | 39 // userenv.dll is required for GetProfileType(). |
40 #pragma comment(lib, "userenv.lib") | 40 #pragma comment(lib, "userenv.lib") |
41 | 41 |
42 #pragma intrinsic(_AddressOfReturnAddress) | 42 #pragma intrinsic(_AddressOfReturnAddress) |
43 #pragma intrinsic(_ReturnAddress) | 43 #pragma intrinsic(_ReturnAddress) |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 if (process_type != L"browser" && | 759 if (process_type != L"browser" && |
760 !GetBreakpadClient()->IsRunningUnattended()) { | 760 !GetBreakpadClient()->IsRunningUnattended()) { |
761 // Initialize the hook TerminateProcess to catch unexpected exits. | 761 // Initialize the hook TerminateProcess to catch unexpected exits. |
762 InitTerminateProcessHooks(); | 762 InitTerminateProcessHooks(); |
763 } | 763 } |
764 #endif | 764 #endif |
765 } | 765 } |
766 } | 766 } |
767 | 767 |
768 } // namespace breakpad | 768 } // namespace breakpad |
OLD | NEW |