| 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 #import "components/crash/app/breakpad_mac.h" | 5 #import "components/crash/content/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" |
| 11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
| 12 #import "base/basictypes.h" | 12 #import "base/basictypes.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/debug/crash_logging.h" | 14 #include "base/debug/crash_logging.h" |
| 15 #include "base/debug/dump_without_crashing.h" | 15 #include "base/debug/dump_without_crashing.h" |
| 16 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/files/file_util.h" | 17 #include "base/files/file_util.h" |
| 18 #import "base/logging.h" | 18 #import "base/logging.h" |
| 19 #include "base/mac/bundle_locations.h" | 19 #include "base/mac/bundle_locations.h" |
| 20 #include "base/mac/foundation_util.h" | 20 #include "base/mac/foundation_util.h" |
| 21 #include "base/mac/mac_util.h" | 21 #include "base/mac/mac_util.h" |
| 22 #include "base/mac/scoped_cftyperef.h" | 22 #include "base/mac/scoped_cftyperef.h" |
| 23 #import "base/mac/scoped_nsautorelease_pool.h" | 23 #import "base/mac/scoped_nsautorelease_pool.h" |
| 24 #include "base/strings/sys_string_conversions.h" | 24 #include "base/strings/sys_string_conversions.h" |
| 25 #include "base/threading/platform_thread.h" | 25 #include "base/threading/platform_thread.h" |
| 26 #include "base/threading/thread_restrictions.h" | 26 #include "base/threading/thread_restrictions.h" |
| 27 #import "breakpad/src/client/mac/Framework/Breakpad.h" | 27 #import "breakpad/src/client/mac/Framework/Breakpad.h" |
| 28 #include "components/crash/app/crash_reporter_client.h" | 28 #include "components/crash/content/app/crash_reporter_client.h" |
| 29 | 29 |
| 30 using crash_reporter::GetCrashReporterClient; | 30 using crash_reporter::GetCrashReporterClient; |
| 31 | 31 |
| 32 namespace breakpad { | 32 namespace breakpad { |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 BreakpadRef gBreakpadRef = NULL; | 36 BreakpadRef gBreakpadRef = NULL; |
| 37 | 37 |
| 38 void SetCrashKeyValue(NSString* key, NSString* value) { | 38 void SetCrashKeyValue(NSString* key, NSString* value) { |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 277 | 277 |
| 278 // Store process type in crash dump. | 278 // Store process type in crash dump. |
| 279 SetCrashKeyValue(@"ptype", process_type); | 279 SetCrashKeyValue(@"ptype", process_type); |
| 280 | 280 |
| 281 NSString* pid_value = | 281 NSString* pid_value = |
| 282 [NSString stringWithFormat:@"%d", static_cast<unsigned int>(getpid())]; | 282 [NSString stringWithFormat:@"%d", static_cast<unsigned int>(getpid())]; |
| 283 SetCrashKeyValue(@"pid", pid_value); | 283 SetCrashKeyValue(@"pid", pid_value); |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace breakpad | 286 } // namespace breakpad |
| OLD | NEW |