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

Issue 115808: Respect Linux user prefs with regards to crash reporting. (Closed)

Created:
11 years, 7 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
agl, Evan Martin
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Respect Linux user prefs with regards to crash reporting. This involves implementing GoogleUpdateSettings::[GS]etCollectStatsConsent, and a whole lot of refactoring. BUG=none TEST=delete config dir, run official Linux build, don't enable crash reporting, crash browser -> no crash reporting. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=17104

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : unit test flushed out a bug #

Patch Set 4 : make gcl lint happier #

Total comments: 3

Patch Set 5 : '' #

Patch Set 6 : with nits fixed, also some minor fixes to breakpad_linux.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+196 lines, -202 lines) Patch
M chrome/app/breakpad_linux.h View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/breakpad_linux.cc View 2 3 4 3 chunks +94 lines, -3 lines 0 comments Download
M chrome/app/breakpad_linux_stub.cc View 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/app/chrome_dll_main.cc View 2 3 4 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/browser_main.cc View 2 3 4 9 chunks +11 lines, -22 lines 0 comments Download
M chrome/browser/first_run_gtk.cc View 2 3 4 2 chunks +11 lines, -5 lines 0 comments Download
A chrome/browser/google_update_settings_linux.cc View 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/google_update_settings_linux_unittest.cc View 1 chunk +23 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 2 3 4 5 chunks +6 lines, -16 lines 0 comments Download
M chrome/common/temp_scaffolding_stubs.h View 2 3 4 1 chunk +0 lines, -36 lines 0 comments Download
D chrome/renderer/render_crash_handler_linux.h View 2 3 4 1 chunk +0 lines, -16 lines 0 comments Download
D chrome/renderer/render_crash_handler_linux.cc View 2 3 4 1 chunk +0 lines, -85 lines 0 comments Download
D chrome/renderer/render_crash_handler_linux_stub.cc View 2 3 4 1 chunk +0 lines, -9 lines 0 comments Download
M chrome/renderer/renderer_main.cc View 1 2 3 4 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Lei Zhang
11 years, 7 months ago (2009-05-27 00:51:14 UTC) #1
Evan Martin
http://codereview.chromium.org/115808/diff/1/2 File chrome/browser/renderer_host/browser_render_process_host.cc (right): http://codereview.chromium.org/115808/diff/1/2#newcode308 Line 308: // switches::kDisableBreakpad to the renderer. This makes me ...
11 years, 7 months ago (2009-05-27 00:53:08 UTC) #2
Lei Zhang
On 2009/05/27 00:53:08, Evan Martin wrote: > http://codereview.chromium.org/115808/diff/1/2 > File chrome/browser/renderer_host/browser_render_process_host.cc (right): > > http://codereview.chromium.org/115808/diff/1/2#newcode308 ...
11 years, 7 months ago (2009-05-27 01:02:22 UTC) #3
Lei Zhang
I will refactor the Linux crash handling code to be more like the Win/Mac code. ...
11 years, 7 months ago (2009-05-27 01:38:26 UTC) #4
Lei Zhang
Here comes a much bigger patch set 2. I still need to add a unit ...
11 years, 7 months ago (2009-05-27 05:54:42 UTC) #5
Evan Martin
+agl for the crasher bits (I don't know if it's kosher to e.g. use std::string ...
11 years, 7 months ago (2009-05-27 05:57:09 UTC) #6
Evan Martin
it looks like you moved some files? you should use "svn mv" for those.. http://codereview.chromium.org/115808/diff/9/16 ...
11 years, 7 months ago (2009-05-27 06:00:15 UTC) #7
Lei Zhang
I moved the contents of chrome/renderer/render_crash_handler_linux.* into chrome/app/breakpad_linux.*. So it was more of an append ...
11 years, 7 months ago (2009-05-27 06:05:17 UTC) #8
Lei Zhang
ping.
11 years, 6 months ago (2009-05-28 08:45:22 UTC) #9
Evan Martin
http://codereview.chromium.org/115808/diff/1029/1042 File chrome/browser/google_update_settings_linux.cc (right): http://codereview.chromium.org/115808/diff/1029/1042#newcode12 Line 12: static const char kConsentToSendStats[] = "Consent To Send ...
11 years, 6 months ago (2009-05-28 18:47:26 UTC) #10
Lei Zhang
On 2009/05/28 18:47:26, Evan Martin wrote: > http://codereview.chromium.org/115808/diff/1029/1042 > File chrome/browser/google_update_settings_linux.cc (right): > > http://codereview.chromium.org/115808/diff/1029/1042#newcode12 ...
11 years, 6 months ago (2009-05-28 18:56:41 UTC) #11
Evan Martin
11 years, 6 months ago (2009-05-28 18:59:21 UTC) #12
LGTM

http://codereview.chromium.org/115808/diff/1029/1042
File chrome/browser/google_update_settings_linux.cc (right):

http://codereview.chromium.org/115808/diff/1029/1042#newcode12
Line 12: static const char kConsentToSendStats[] = "Consent To Send Stats";
Can you doc this?  e.g. "file name used in the user data dir"

http://codereview.chromium.org/115808/diff/1029/1042#newcode31
Line 31: return 0 == file_util::WriteFile(consent_file, "", 0);
rest of the code does tests the other way around *shrug*

Powered by Google App Engine
This is Rietveld 408576698