| OLD | NEW |
| 1 // Copyright (c) 2010 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 #include "chrome/app/breakpad_win.h" | 5 #include "chrome/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 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "base/string_util.h" | 21 #include "base/string_util.h" |
| 22 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
| 23 #include "base/win/registry.h" | 23 #include "base/win/registry.h" |
| 24 #include "base/win/win_util.h" | 24 #include "base/win/win_util.h" |
| 25 #include "breakpad/src/client/windows/handler/exception_handler.h" | 25 #include "breakpad/src/client/windows/handler/exception_handler.h" |
| 26 #include "chrome/app/hard_error_handler_win.h" | 26 #include "chrome/app/hard_error_handler_win.h" |
| 27 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
| 28 #include "chrome/common/chrome_switches.h" | 28 #include "chrome/common/chrome_switches.h" |
| 29 #include "chrome/common/env_vars.h" | 29 #include "chrome/common/env_vars.h" |
| 30 #include "chrome/common/result_codes.h" | 30 #include "chrome/common/result_codes.h" |
| 31 #include "chrome/common/policy_constants.h" | |
| 32 #include "chrome/installer/util/google_chrome_sxs_distribution.h" | 31 #include "chrome/installer/util/google_chrome_sxs_distribution.h" |
| 33 #include "chrome/installer/util/google_update_settings.h" | 32 #include "chrome/installer/util/google_update_settings.h" |
| 34 #include "chrome/installer/util/install_util.h" | 33 #include "chrome/installer/util/install_util.h" |
| 34 #include "policy/policy_constants.h" |
| 35 | 35 |
| 36 namespace { | 36 namespace { |
| 37 | 37 |
| 38 // Minidump with stacks, PEB, TEB, and unloaded module list. | 38 // Minidump with stacks, PEB, TEB, and unloaded module list. |
| 39 const MINIDUMP_TYPE kSmallDumpType = static_cast<MINIDUMP_TYPE>( | 39 const MINIDUMP_TYPE kSmallDumpType = static_cast<MINIDUMP_TYPE>( |
| 40 MiniDumpWithProcessThreadData | // Get PEB and TEB. | 40 MiniDumpWithProcessThreadData | // Get PEB and TEB. |
| 41 MiniDumpWithUnloadedModules); // Get unloaded modules when available. | 41 MiniDumpWithUnloadedModules); // Get unloaded modules when available. |
| 42 | 42 |
| 43 // Minidump with all of the above, plus memory referenced from stack. | 43 // Minidump with all of the above, plus memory referenced from stack. |
| 44 const MINIDUMP_TYPE kLargerDumpType = static_cast<MINIDUMP_TYPE>( | 44 const MINIDUMP_TYPE kLargerDumpType = static_cast<MINIDUMP_TYPE>( |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 if (QueueUserWorkItem( | 589 if (QueueUserWorkItem( |
| 590 &InitCrashReporterThread, | 590 &InitCrashReporterThread, |
| 591 info, | 591 info, |
| 592 WT_EXECUTELONGFUNCTION) == 0) { | 592 WT_EXECUTELONGFUNCTION) == 0) { |
| 593 // We failed to queue to the worker pool, initialize in this thread. | 593 // We failed to queue to the worker pool, initialize in this thread. |
| 594 InitCrashReporterThread(info); | 594 InitCrashReporterThread(info); |
| 595 } | 595 } |
| 596 } | 596 } |
| 597 } | 597 } |
| 598 } | 598 } |
| OLD | NEW |