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

Issue 1481933002: Move crash keys for command-line switches to components/crash so they can be set (Closed)

Created:
5 years ago by Joe Mason
Modified:
5 years ago
CC:
chromium-reviews, grt+watch_chromium.org, kalyank, sadrul, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@installer_crash_keys
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move crash keys for command-line switches to components/crash so they can be set from the installer as well as chrome, and set them on installer startup. BUG=558552 Committed: https://crrev.com/0edd36dd4ac523ad6989fd2e387b15c68d22379e Cr-Commit-Position: refs/heads/master@{#362437}

Patch Set 1 #

Total comments: 17

Patch Set 2 : Address review comments #

Total comments: 2

Patch Set 3 : Get rid of default argument #

Total comments: 12

Patch Set 4 : int -> size_t #

Total comments: 11

Patch Set 5 : more size_t fixes #

Patch Set 6 : Thanks, trybot #

Patch Set 7 : More tweaks to satisfy trybot #

Patch Set 8 : Address rsesek's comments, fix compile failure in linux zygote #

Patch Set 9 : typedef -> using, %lu -> PRIuS #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -131 lines) Patch
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/common/crash_keys.h View 1 2 3 2 chunks +3 lines, -10 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 5 chunks +3 lines, -59 lines 0 comments Download
M chrome/common/crash_keys_unittest.cc View 1 3 chunks +5 lines, -49 lines 0 comments Download
M chrome/installer/setup/installer_crash_reporting.h View 1 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/installer/setup/installer_crash_reporting.cc View 1 2 3 3 chunks +12 lines, -1 line 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 chunk +1 line, -0 lines 0 comments Download
M components/components_tests.gyp View 1 1 chunk +1 line, -0 lines 0 comments Download
M components/crash/core/common/BUILD.gn View 1 chunk +11 lines, -8 lines 0 comments Download
M components/crash/core/common/crash_keys.h View 1 2 3 4 5 6 7 8 3 chunks +31 lines, -0 lines 0 comments Download
M components/crash/core/common/crash_keys.cc View 1 2 3 4 5 6 7 3 chunks +66 lines, -0 lines 0 comments Download
A components/crash/core/common/crash_keys_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +140 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (9 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481933002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481933002/1
5 years ago (2015-11-27 15:11:46 UTC) #2
commit-bot: I haz the power
Dry run: No L-G-T-M from a valid reviewer yet. Only full committers are accepted. Even ...
5 years ago (2015-11-27 15:11:48 UTC) #4
Joe Mason
grt@chromium.org: Please review changes in chrome/installer rsesek@chromium.org: Please review changes in chrome/common and components/crash
5 years ago (2015-11-27 15:28:02 UTC) #6
grt (UTC plus 2)
code reuse FTW! https://codereview.chromium.org/1481933002/diff/1/chrome/common/crash_keys.cc File chrome/common/crash_keys.cc (right): https://codereview.chromium.org/1481933002/diff/1/chrome/common/crash_keys.cc#newcode255 chrome/common/crash_keys.cc:255: return SetSwitchesFromCommandLine(*command_line, hmm, the name collision ...
5 years ago (2015-11-27 18:51:21 UTC) #8
Joe Mason
Address review comments
5 years ago (2015-11-27 21:05:41 UTC) #9
Joe Mason
https://codereview.chromium.org/1481933002/diff/1/chrome/common/crash_keys.cc File chrome/common/crash_keys.cc (right): https://codereview.chromium.org/1481933002/diff/1/chrome/common/crash_keys.cc#newcode255 chrome/common/crash_keys.cc:255: return SetSwitchesFromCommandLine(*command_line, On 2015/11/27 18:51:21, grt wrote: > hmm, ...
5 years ago (2015-11-27 21:16:47 UTC) #10
grt (UTC plus 2)
lgtm with a niggle https://codereview.chromium.org/1481933002/diff/20001/components/crash/core/common/crash_keys.h File components/crash/core/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/20001/components/crash/core/common/crash_keys.h#newcode41 components/crash/core/common/crash_keys.h:41: SwitchFilterFunction skip_filter = nullptr); in ...
5 years ago (2015-11-27 21:32:53 UTC) #11
Joe Mason
Get rid of default argument
5 years ago (2015-11-27 22:26:36 UTC) #12
Joe Mason
jochen@chromium.org: Please review changes in chrome/browser/chrome_browser_main.cc
5 years ago (2015-11-27 22:27:14 UTC) #14
Joe Mason
https://codereview.chromium.org/1481933002/diff/20001/components/crash/core/common/crash_keys.h File components/crash/core/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/20001/components/crash/core/common/crash_keys.h#newcode41 components/crash/core/common/crash_keys.h:41: SwitchFilterFunction skip_filter = nullptr); On 2015/11/27 21:32:53, grt wrote: ...
5 years ago (2015-11-27 22:29:14 UTC) #15
grt (UTC plus 2)
still lgtm https://codereview.chromium.org/1481933002/diff/40001/chrome/common/crash_keys.h File chrome/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/40001/chrome/common/crash_keys.h#newcode25 chrome/common/crash_keys.h:25: // Sets the kNumSwitches key and a ...
5 years ago (2015-11-28 02:04:30 UTC) #16
grt (UTC plus 2)
Turns out there are some mismatched types causing compile failures (see https://codereview.chromium.org/1478273003/#ps20001). https://codereview.chromium.org/1481933002/diff/40001/components/crash/core/common/crash_keys_unittest.cc File components/crash/core/common/crash_keys_unittest.cc ...
5 years ago (2015-11-30 13:50:16 UTC) #17
jochen (gone - plz use gerrit)
I defer to rsesek
5 years ago (2015-11-30 15:58:41 UTC) #18
Robert Sesek
https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.cc File components/crash/core/common/crash_keys.cc (right): https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.cc#newcode107 components/crash/core/common/crash_keys.cc:107: // The fixed_keys names are string constants. Use static ...
5 years ago (2015-11-30 16:08:12 UTC) #19
Joe Mason
https://codereview.chromium.org/1481933002/diff/40001/chrome/common/crash_keys.h File chrome/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/40001/chrome/common/crash_keys.h#newcode25 chrome/common/crash_keys.h:25: // Sets the kNumSwitches key and a set of ...
5 years ago (2015-11-30 17:23:56 UTC) #20
Joe Mason
https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.h File components/crash/core/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.h#newcode35 components/crash/core/common/crash_keys.h:35: typedef bool (*SwitchFilterFunction)(const std::string &flag); On 2015/11/30 16:08:12, Robert ...
5 years ago (2015-11-30 17:27:36 UTC) #21
Robert Sesek
https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.h File components/crash/core/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.h#newcode35 components/crash/core/common/crash_keys.h:35: typedef bool (*SwitchFilterFunction)(const std::string &flag); On 2015/11/30 17:27:36, joenotcharles ...
5 years ago (2015-11-30 17:32:18 UTC) #22
Robert Sesek
https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys_unittest.cc File components/crash/core/common/crash_keys_unittest.cc (right): https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys_unittest.cc#newcode121 components/crash/core/common/crash_keys_unittest.cc:121: command_line.AppendSwitch("--boring"); On 2015/11/30 17:23:55, joenotcharles wrote: > On 2015/11/30 ...
5 years ago (2015-11-30 17:33:18 UTC) #23
Joe Mason
https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.h File components/crash/core/common/crash_keys.h (right): https://codereview.chromium.org/1481933002/diff/60001/components/crash/core/common/crash_keys.h#newcode35 components/crash/core/common/crash_keys.h:35: typedef bool (*SwitchFilterFunction)(const std::string &flag); On 2015/11/30 17:32:18, Robert ...
5 years ago (2015-11-30 18:37:23 UTC) #24
Robert Sesek
LGTM
5 years ago (2015-11-30 20:32:11 UTC) #25
jochen (gone - plz use gerrit)
lgtm
5 years ago (2015-12-01 13:46:09 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1481933002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1481933002/160001
5 years ago (2015-12-01 16:29:48 UTC) #29
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-01 16:57:41 UTC) #31
commit-bot: I haz the power
5 years ago (2015-12-01 16:58:25 UTC) #33
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0edd36dd4ac523ad6989fd2e387b15c68d22379e
Cr-Commit-Position: refs/heads/master@{#362437}

Powered by Google App Engine
This is Rietveld 408576698