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

Issue 10407058: Compile in Breakpad by default on Linux (Closed)

Created:
8 years, 7 months ago by Mark Seaborn
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Compile Breakpad into Chromium by default on Linux This brings the Linux build into line with the Windows and Mac builds, where Breakpad is compiled in by default. This allows us to test Breakpad on the trybots and buildbots. It's still possible to omit Breakpad support using a Gyp option. As with Windows and Mac, we don't want to enable Breakpad in Chromium at run time by default (since that would spam the crash server, which doesn't have symbols for Chromium builds anyway), so we put this behind a run time flag. We also don't compile in debug info (-g) by default. We extend NaCl's Breakpad tests to be able to locate crash dumps on Linux. We add some "#ifdef GOOGLE_CHROME_BUILD"s to prevent Breakpad from being enabled accidentally without the run time flag, but this is just in case because there should be no GUI option for enabling stats/crash reporting inside non-Chrome Chromium builds. BUG=105778 TEST=breakpad_browser_process_crash_test in nacl_integration Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176911

Patch Set 1 #

Patch Set 2 : Fix and add test #

Patch Set 3 : Clean up test #

Patch Set 4 : Don't add -g by default + rebase #

Total comments: 8

Patch Set 5 : Review changes #

Patch Set 6 : Make code conditional #

Patch Set 7 : Fix #

Patch Set 8 : Change Android code path #

Total comments: 2

Patch Set 9 : Expand comment #

Patch Set 10 : Add #ifdef to chrome/browser/chromeos/login/wizard_controller.cc too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -58 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/chrome_browser_main_android.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -1 line 0 comments Download
M chrome/browser/chrome_browser_main_linux.cc View 1 2 3 4 5 6 1 chunk +51 lines, -22 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/env_vars.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/env_vars.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/native_client/tests/breakpad_crash_test/crash_dump_tester.py View 1 2 3 4 5 6 7 8 3 chunks +39 lines, -9 lines 0 comments Download
M ppapi/native_client/tests/breakpad_crash_test/nacl.scons View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -18 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Mark Seaborn
@ncbray for ppapi/nativeclient @thestig for everything else
7 years, 11 months ago (2013-01-09 21:31:23 UTC) #1
Lei Zhang
Keep in mind this switches Breakpad on for CrOS and Android as well. jcivelli: Can ...
7 years, 11 months ago (2013-01-09 22:36:49 UTC) #2
Nick Bray (chromium)
LGTM for the NaCl part of the CL, but that's the simple part. https://codereview.chromium.org/10407058/diff/8002/ppapi/native_client/tests/breakpad_crash_test/crash_dump_tester.py File ...
7 years, 11 months ago (2013-01-09 23:09:56 UTC) #3
Mark Seaborn
https://codereview.chromium.org/10407058/diff/8002/chrome/browser/chrome_browser_main_linux.cc File chrome/browser/chrome_browser_main_linux.cc (right): https://codereview.chromium.org/10407058/diff/8002/chrome/browser/chrome_browser_main_linux.cc#newcode66 chrome/browser/chrome_browser_main_linux.cc:66: bool breakpad_enabled = On 2013/01/09 22:36:49, Lei Zhang wrote: ...
7 years, 11 months ago (2013-01-10 00:48:28 UTC) #4
Lei Zhang
Looking good. Let's see what the Android/CrOS folks say. https://codereview.chromium.org/10407058/diff/8002/chrome/browser/chrome_browser_main_linux.cc File chrome/browser/chrome_browser_main_linux.cc (right): https://codereview.chromium.org/10407058/diff/8002/chrome/browser/chrome_browser_main_linux.cc#newcode66 chrome/browser/chrome_browser_main_linux.cc:66: ...
7 years, 11 months ago (2013-01-10 00:58:49 UTC) #5
Mark Seaborn
https://codereview.chromium.org/10407058/diff/8002/chrome/browser/chrome_browser_main_linux.cc File chrome/browser/chrome_browser_main_linux.cc (right): https://codereview.chromium.org/10407058/diff/8002/chrome/browser/chrome_browser_main_linux.cc#newcode66 chrome/browser/chrome_browser_main_linux.cc:66: bool breakpad_enabled = On 2013/01/10 00:58:49, Lei Zhang wrote: ...
7 years, 11 months ago (2013-01-10 01:23:02 UTC) #6
Jay Civelli
You need to update chrome_browser_main_android.cc as well.
7 years, 11 months ago (2013-01-10 17:56:27 UTC) #7
Mark Seaborn
On 2013/01/10 17:56:27, Jay Civelli wrote: > You need to update chrome_browser_main_android.cc as well. Done. ...
7 years, 11 months ago (2013-01-10 19:38:31 UTC) #8
Jay Civelli
lgtm
7 years, 11 months ago (2013-01-11 18:54:55 UTC) #9
Lei Zhang
lgtm https://codereview.chromium.org/10407058/diff/8005/chrome/common/env_vars.cc File chrome/common/env_vars.cc (right): https://codereview.chromium.org/10407058/diff/8005/chrome/common/env_vars.cc#newcode9 chrome/common/env_vars.cc:9: // Enable Breakpad crash reporting. nit: Can you ...
7 years, 11 months ago (2013-01-11 20:21:16 UTC) #10
Mark Seaborn
https://codereview.chromium.org/10407058/diff/8005/chrome/common/env_vars.cc File chrome/common/env_vars.cc (right): https://codereview.chromium.org/10407058/diff/8005/chrome/common/env_vars.cc#newcode9 chrome/common/env_vars.cc:9: // Enable Breakpad crash reporting. On 2013/01/11 20:21:16, Lei ...
7 years, 11 months ago (2013-01-11 20:34:52 UTC) #11
Mark Seaborn
On 2013/01/09 22:36:49, Lei Zhang wrote: > pastarmovj: Is the USE_LINUX_BREAKPAD section in > chrome/browser/chromeos/login/wizard_controller.cc ...
7 years, 11 months ago (2013-01-12 00:28:55 UTC) #12
Mark Seaborn
On 2013/01/12 00:28:55, Mark Seaborn wrote: > On 2013/01/09 22:36:49, Lei Zhang wrote: > > ...
7 years, 11 months ago (2013-01-15 01:52:39 UTC) #13
dpolukhin
LGTM for changes in wizard_controller.cc
7 years, 11 months ago (2013-01-15 06:29:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mseaborn@chromium.org/10407058/31001
7 years, 11 months ago (2013-01-15 12:01:52 UTC) #15
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 13:21:07 UTC) #16
Retried try job too often on mac_rel for step(s) unit_tests

Powered by Google App Engine
This is Rietveld 408576698