Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1032)

Side by Side Diff: components/breakpad/app/breakpad_mac.mm

Issue 31243002: Move Linux/Android breakpad implementation to breakpad component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "components/breakpad/breakpad_mac.h" 5 #import "components/breakpad/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/file_util.h" 15 #include "base/file_util.h"
16 #include "base/files/file_path.h" 16 #include "base/files/file_path.h"
17 #import "base/logging.h" 17 #import "base/logging.h"
18 #include "base/mac/bundle_locations.h" 18 #include "base/mac/bundle_locations.h"
19 #include "base/mac/mac_util.h" 19 #include "base/mac/mac_util.h"
20 #include "base/mac/scoped_cftyperef.h" 20 #include "base/mac/scoped_cftyperef.h"
21 #import "base/mac/scoped_nsautorelease_pool.h" 21 #import "base/mac/scoped_nsautorelease_pool.h"
22 #include "base/strings/sys_string_conversions.h" 22 #include "base/strings/sys_string_conversions.h"
23 #include "base/threading/platform_thread.h" 23 #include "base/threading/platform_thread.h"
24 #include "base/threading/thread_restrictions.h" 24 #include "base/threading/thread_restrictions.h"
25 #import "breakpad/src/client/mac/Framework/Breakpad.h" 25 #import "breakpad/src/client/mac/Framework/Breakpad.h"
26 #include "components/breakpad/breakpad_client.h" 26 #include "components/breakpad/app/breakpad_client.h"
27 #include "content/public/common/content_switches.h" 27 #include "content/public/common/content_switches.h"
28 28
29 namespace breakpad { 29 namespace breakpad {
30 30
31 namespace { 31 namespace {
32 32
33 BreakpadRef gBreakpadRef = NULL; 33 BreakpadRef gBreakpadRef = NULL;
34 34
35 void SetCrashKeyValue(NSString* key, NSString* value) { 35 void SetCrashKeyValue(NSString* key, NSString* value) {
36 // Comment repeated from header to prevent confusion: 36 // Comment repeated from header to prevent confusion:
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 process_type = base::SysUTF8ToNSString(process_type_switch); 270 process_type = base::SysUTF8ToNSString(process_type_switch);
271 } 271 }
272 272
273 GetBreakpadClient()->InstallAdditionalFilters(gBreakpadRef); 273 GetBreakpadClient()->InstallAdditionalFilters(gBreakpadRef);
274 274
275 // Store process type in crash dump. 275 // Store process type in crash dump.
276 SetCrashKeyValue(@"ptype", process_type); 276 SetCrashKeyValue(@"ptype", process_type);
277 } 277 }
278 278
279 } // namespace breakpad 279 } // namespace breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698