| 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 |
| 11 #include <algorithm> | 11 #include <algorithm> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/base_switches.h" | 14 #include "base/base_switches.h" |
| 15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
| 16 #include "base/file_util.h" | 16 #include "base/file_util.h" |
| 17 #include "base/file_version_info.h" | 17 #include "base/file_version_info.h" |
| 18 #include "base/registry.h" | 18 #include "base/registry.h" |
| 19 #include "base/string_util.h" | 19 #include "base/string_util.h" |
| 20 #include "base/win_util.h" | 20 #include "base/win_util.h" |
| 21 #include "breakpad/src/client/windows/handler/exception_handler.h" | 21 #include "breakpad/src/client/windows/handler/exception_handler.h" |
| 22 #include "chrome/app/hard_error_handler_win.h" | 22 #include "chrome/app/hard_error_handler_win.h" |
| 23 #include "chrome/common/child_process_logging.h" |
| 23 #include "chrome/common/env_vars.h" | 24 #include "chrome/common/env_vars.h" |
| 24 #include "chrome/common/result_codes.h" | 25 #include "chrome/common/result_codes.h" |
| 25 #include "chrome/installer/util/google_update_settings.h" | 26 #include "chrome/installer/util/google_update_settings.h" |
| 26 #include "chrome/installer/util/install_util.h" | 27 #include "chrome/installer/util/install_util.h" |
| 27 | 28 |
| 28 namespace { | 29 namespace { |
| 29 | 30 |
| 30 // Minidump with stacks, PEB, TEB, and unloaded module list. | 31 // Minidump with stacks, PEB, TEB, and unloaded module list. |
| 31 const MINIDUMP_TYPE kSmallDumpType = static_cast<MINIDUMP_TYPE>( | 32 const MINIDUMP_TYPE kSmallDumpType = static_cast<MINIDUMP_TYPE>( |
| 32 MiniDumpWithProcessThreadData | // Get PEB and TEB. | 33 MiniDumpWithProcessThreadData | // Get PEB and TEB. |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 if (QueueUserWorkItem( | 458 if (QueueUserWorkItem( |
| 458 &InitCrashReporterThread, | 459 &InitCrashReporterThread, |
| 459 info.release(), | 460 info.release(), |
| 460 WT_EXECUTELONGFUNCTION) == 0) { | 461 WT_EXECUTELONGFUNCTION) == 0) { |
| 461 // We failed to queue to the worker pool, initialize in this thread. | 462 // We failed to queue to the worker pool, initialize in this thread. |
| 462 InitCrashReporterThread(info.release()); | 463 InitCrashReporterThread(info.release()); |
| 463 } | 464 } |
| 464 } | 465 } |
| 465 } | 466 } |
| 466 } | 467 } |
| OLD | NEW |