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

Issue 53075: First stab at Mac breakpad support. (Closed)

Created:
11 years, 9 months ago by jeremy
Modified:
9 years, 6 months ago
Reviewers:
John Grabowski
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

First stab at Mac breakpad support. breakpad_mac.mm still needs some work, there's a bunch of scaffolding in there referring to a custom version of Breakpad I've got going locally.

Patch Set 1 #

Total comments: 9

Patch Set 2 : Address John's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+495 lines, -368 lines) Patch
M base/logging.cc View 1 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/app/breakpad.h View 1 chunk +0 lines, -23 lines 0 comments Download
M chrome/app/breakpad.cc View 1 chunk +0 lines, -332 lines 0 comments Download
A chrome/app/breakpad_mac.h View 1 chunk +19 lines, -0 lines 0 comments Download
A chrome/app/breakpad_mac.mm View 1 1 chunk +95 lines, -0 lines 0 comments Download
A chrome/app/breakpad_win.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/app/breakpad_win.cc View 1 1 chunk +332 lines, -0 lines 0 comments Download
M chrome/app/chrome_dll_main.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M chrome/app/chrome_exe.vcproj View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/app/chrome_exe_main.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/app/chrome_exe_main.mm View 2 chunks +9 lines, -2 lines 0 comments Download
M chrome/chrome.gyp View 1 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
jeremy
This code runs against a custom version of Breakpad I've compiled on my machine (which ...
11 years, 9 months ago (2009-03-25 23:14:27 UTC) #1
John Grabowski
11 years, 9 months ago (2009-03-25 23:47:03 UTC) #2
LGTM with minor nits.
Great to see this coming together.

http://codereview.chromium.org/53075/diff/1/3
File chrome/app/breakpad.cc (left):

http://codereview.chromium.org/53075/diff/1/3#oldcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
ditto on rietveld vs svn

http://codereview.chromium.org/53075/diff/1/4
File chrome/app/breakpad.h (left):

http://codereview.chromium.org/53075/diff/1/4#oldcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
Presumably this is really an svn D, not a M, and rietveld just got confused?
Please dbl-check this was svn deleted.

http://codereview.chromium.org/53075/diff/1/6
File chrome/app/breakpad_mac.mm (right):

http://codereview.chromium.org/53075/diff/1/6#newcode14
Line 14: // TODO(playmobil): Remove this block once we include the breakpad
sources
s/playmobil/jeremy/g  (a few spots in here)

http://codereview.chromium.org/53075/diff/1/6#newcode17
Line 17: +(void*) Create:(NSDictionary*) parameters;
no space between (void*) and Create:.
Ditto line below.
Same thing for space between (NSDictionary*) and parameters.
I think the style guide supports this.

http://codereview.chromium.org/53075/diff/1/6#newcode29
Line 29: bool IsUsageReportingAllowed() {
Not clear what the purpose of this is?

http://codereview.chromium.org/53075/diff/1/6#newcode62
Line 62: NSString* breakpadBundlePath =  [[main_bundle privateFrameworksPath]
extra space between = and [[main_bundle

http://codereview.chromium.org/53075/diff/1/7
File chrome/app/breakpad_win.cc (right):

http://codereview.chromium.org/53075/diff/1/7#newcode1
Line 1: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
Presumably this is also an svn rename messed up by rietveld?

http://codereview.chromium.org/53075/diff/1/8
File chrome/app/breakpad_win.h (right):

http://codereview.chromium.org/53075/diff/1/8#newcode13
Line 13: void InitCrashReporter(const std::wstring& dll_path);
It's a little awkward to have C functions with the same name but different args
on Mac/Win.  Can we rename this one (e.g. InitCrashReporterWithDllPath())?

http://codereview.chromium.org/53075/diff/1/13
File chrome/chrome.gyp (right):

http://codereview.chromium.org/53075/diff/1/13#newcode1469
Line 1469: 'app/breakpad_win.cc',
Adding a comment (e.g. "see target_defaults above for info on which files get
magically removed from certain builds") might be nice.  Magic bad.

Powered by Google App Engine
This is Rietveld 408576698