OLD | NEW |
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 #import "chrome/app/breakpad_mac.h" | 5 #import "chrome/app/breakpad_mac.h" |
6 | 6 |
7 #include <CoreFoundation/CoreFoundation.h> | 7 #include <CoreFoundation/CoreFoundation.h> |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #import "base/mac/scoped_nsautorelease_pool.h" | 21 #import "base/mac/scoped_nsautorelease_pool.h" |
22 #include "base/path_service.h" | 22 #include "base/path_service.h" |
23 #include "base/sys_string_conversions.h" | 23 #include "base/sys_string_conversions.h" |
24 #include "base/threading/platform_thread.h" | 24 #include "base/threading/platform_thread.h" |
25 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
26 #import "breakpad/src/client/mac/Framework/Breakpad.h" | 26 #import "breakpad/src/client/mac/Framework/Breakpad.h" |
27 #include "chrome/common/child_process_logging.h" | 27 #include "chrome/common/child_process_logging.h" |
28 #include "chrome/common/chrome_paths.h" | 28 #include "chrome/common/chrome_paths.h" |
29 #include "chrome/common/chrome_switches.h" | 29 #include "chrome/common/chrome_switches.h" |
30 #include "chrome/common/crash_keys.h" | 30 #include "chrome/common/crash_keys.h" |
| 31 #include "chrome/common/dump_without_crashing.h" |
31 #include "chrome/common/env_vars.h" | 32 #include "chrome/common/env_vars.h" |
32 #include "chrome/common/logging_chrome.h" | 33 #include "chrome/common/logging_chrome.h" |
33 #include "chrome/installer/util/google_update_settings.h" | 34 #include "chrome/installer/util/google_update_settings.h" |
34 #include "native_client/src/trusted/service_runtime/osx/crash_filter.h" | 35 #include "native_client/src/trusted/service_runtime/osx/crash_filter.h" |
35 #include "policy/policy_constants.h" | 36 #include "policy/policy_constants.h" |
36 | 37 |
37 namespace { | 38 namespace { |
38 | 39 |
39 BreakpadRef gBreakpadRef = NULL; | 40 BreakpadRef gBreakpadRef = NULL; |
40 | 41 |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 291 |
291 #if !defined(DISABLE_NACL) | 292 #if !defined(DISABLE_NACL) |
292 if (process_type_switch == switches::kNaClLoaderProcess) { | 293 if (process_type_switch == switches::kNaClLoaderProcess) { |
293 BreakpadSetFilterCallback(gBreakpadRef, NaClBreakpadCrashFilter, NULL); | 294 BreakpadSetFilterCallback(gBreakpadRef, NaClBreakpadCrashFilter, NULL); |
294 } | 295 } |
295 #endif | 296 #endif |
296 | 297 |
297 // Store process type in crash dump. | 298 // Store process type in crash dump. |
298 SetCrashKeyValue(@"ptype", process_type); | 299 SetCrashKeyValue(@"ptype", process_type); |
299 } | 300 } |
OLD | NEW |