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

Issue 7866033: [Windows] Include the about:flags experiments in crash reports. (Closed)

Created:
9 years, 3 months ago by eroman
Modified:
9 years, 3 months ago
Reviewers:
cpu_(ooo_6.6-7.5), Nico
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

[Windows] Include the about:flags experiments in crash reports. * Increases the number of command line switches included in dumps from 2 to 15. * Saves the command line flags for all process types (before it was just for browser). * Includes the "fake" command line flags that were added by about:flags experiments. This change will make it possible to cluster crashes with enabled experiments from our server-side analysis. BUG=60992 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=101009

Patch Set 1 #

Patch Set 2 : sync to TOT #

Patch Set 3 : fix a type warning #

Patch Set 4 : fix merge conflict (browser_main.cc was deleted) #

Total comments: 6

Patch Set 5 : d'oh, fix function name #

Patch Set 6 : remove some accidental goop from patchset 5 #

Total comments: 2

Patch Set 7 : Add a comment per cpu's feedback #

Patch Set 8 : oops, chrome.exe has its own CommandLine global #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : fix name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -29 lines) Patch
M chrome/app/breakpad_win.cc View 1 2 3 4 5 6 7 8 9 5 chunks +59 lines, -29 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging_linux.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging_mac.mm View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/common/child_process_logging_win.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
eroman
9 years, 3 months ago (2011-09-11 04:39:51 UTC) #1
eroman
Changing reviewer from thakis to cpu.
9 years, 3 months ago (2011-09-13 05:31:35 UTC) #2
cpu_(ooo_6.6-7.5)
lgtm http://codereview.chromium.org/7866033/diff/12002/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/7866033/diff/12002/chrome/app/breakpad_win.cc#newcode115 chrome/app/breakpad_win.cc:115: CommandLine::ForCurrentProcess()->argv(); todo (eroman) : filter useless switches that ...
9 years, 3 months ago (2011-09-13 22:09:59 UTC) #3
eroman
Thanks for the review! http://codereview.chromium.org/7866033/diff/12002/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/7866033/diff/12002/chrome/app/breakpad_win.cc#newcode115 chrome/app/breakpad_win.cc:115: CommandLine::ForCurrentProcess()->argv(); On 2011/09/13 22:09:59, cpu ...
9 years, 3 months ago (2011-09-13 22:29:56 UTC) #4
Nico
LGTM! http://codereview.chromium.org/7866033/diff/6003/chrome/app/breakpad_win.cc File chrome/app/breakpad_win.cc (right): http://codereview.chromium.org/7866033/diff/6003/chrome/app/breakpad_win.cc#newcode122 chrome/app/breakpad_win.cc:122: for (; argv_i < argv.size() && num_added < ...
9 years, 3 months ago (2011-09-13 23:04:41 UTC) #5
eroman
9 years, 3 months ago (2011-09-13 23:27:32 UTC) #6
FYI: I have made a minor change to the parameters as, shown here:

http://codereview.chromium.org/7866033/diff2/12002:15011/chrome/app/breakpad_...

The problem was I had been testing this using the multi-DLL build. In the
regular build on the other hand, the breakpad code (chrome.exe) has a separate
global CommandLine from that seen by chrome.dll. Passing in the pointer should
avoid this problem.

Once I verify that this works, I will commit.

http://codereview.chromium.org/7866033/diff/6003/chrome/app/breakpad_win.cc
File chrome/app/breakpad_win.cc (right):

http://codereview.chromium.org/7866033/diff/6003/chrome/app/breakpad_win.cc#n...
chrome/app/breakpad_win.cc:122: for (; argv_i < argv.size() && num_added <
kMaxSwitches; ++argv_i) {
On 2011/09/13 23:04:41, Nico wrote:
> Increment num_added in the for loop instead of in the loop body

Done.

The reason I was doing it in the body rather than the for loop was to make it
easy to skip over adding certain flags. When I address the TODO, I will move the
increment back out of the for loop.

http://codereview.chromium.org/7866033/diff/6003/chrome/common/child_process_...
File chrome/common/child_process_logging_linux.cc (right):

http://codereview.chromium.org/7866033/diff/6003/chrome/common/child_process_...
chrome/common/child_process_logging_linux.cc:82: // TODO: http://crbug.com/60993
On 2011/09/13 23:04:41, Nico wrote:
> NOTIMPLEMENTED()?

Done.

http://codereview.chromium.org/7866033/diff/6003/chrome/common/child_process_...
File chrome/common/child_process_logging_win.cc (right):

http://codereview.chromium.org/7866033/diff/6003/chrome/common/child_process_...
chrome/common/child_process_logging_win.cc:156: if (!exe_module)
On 2011/09/13 23:04:41, Nico wrote:
> DCHECK?

I just copy-pasted this from the other functions in this file. Not familiar
enough to know if DCHECK is correct.

Powered by Google App Engine
This is Rietveld 408576698