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

Issue 12211080: Change crash keys to be registered with a maximum length instead of number of chunks. (Closed)

Created:
7 years, 10 months ago by Robert Sesek
Modified:
7 years, 9 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org
Visibility:
Public.

Description

Change crash keys to be registered with a maximum length instead of number of chunks. Most users won't have an idea of what a "chunk" is, and performing calculations with them is difficult because the chunk length differs by platform. This CL switches to registering based on a maximum value length. For Chrome keys, it provides sensible length constants with COMPILE_ASSERT'd guarantees about the chunkiness. BUG=77656 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186267

Patch Set 1 #

Patch Set 2 : Win fix #

Total comments: 6

Patch Set 3 : Address comments #

Total comments: 12

Patch Set 4 : Rounding #

Patch Set 5 : Link chrome_app_unittests.exe #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -43 lines) Patch
M base/debug/crash_logging.h View 1 2 3 4 2 chunks +6 lines, -5 lines 0 comments Download
M base/debug/crash_logging.cc View 1 2 3 7 chunks +25 lines, -9 lines 0 comments Download
M base/debug/crash_logging_unittest.cc View 1 2 3 9 chunks +19 lines, -12 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/common/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/crash_keys.cc View 1 2 1 chunk +49 lines, -15 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Robert Sesek
7 years, 10 months ago (2013-02-07 23:47:24 UTC) #1
Scott Hess - ex-Googler
I think I'm good on this overall, but I'm a little nervous about having the ...
7 years, 10 months ago (2013-02-08 00:35:08 UTC) #2
Robert Sesek
On 2013/02/08 00:35:08, shess wrote: > I think I'm good on this overall, but I'm ...
7 years, 10 months ago (2013-02-08 19:58:27 UTC) #3
Robert Sesek
ping
7 years, 10 months ago (2013-02-19 20:43:42 UTC) #4
Scott Hess - ex-Googler
[Looping in Eric to get a second opinion. I feel like my opinion is being ...
7 years, 10 months ago (2013-02-19 23:16:10 UTC) #5
Robert Sesek
On 2013/02/19 23:16:10, shess wrote: > [Looping in Eric to get a second opinion. I ...
7 years, 10 months ago (2013-02-19 23:22:43 UTC) #6
Scott Hess - ex-Googler
On 2013/02/19 23:22:43, rsesek wrote: > On 2013/02/19 23:16:10, shess wrote: > > [Looping in ...
7 years, 10 months ago (2013-02-19 23:46:36 UTC) #7
eroman
I think this approach is fine. I am much less concerned than shess about the ...
7 years, 10 months ago (2013-02-20 00:04:40 UTC) #8
eroman
https://codereview.chromium.org/12211080/diff/4001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/12211080/diff/4001/base/debug/crash_logging.cc#newcode166 base/debug/crash_logging.cc:166: std::string value_string = value.substr(0, crash_key.max_length).as_string(); Is this restriction necessary? ...
7 years, 10 months ago (2013-02-20 00:08:43 UTC) #9
Robert Sesek
PTAL. I agree with Eric that our backend infrastructure should do a better job of ...
7 years, 9 months ago (2013-02-27 18:52:48 UTC) #10
Robert Sesek
PTAL. I agree with Eric that our backend infrastructure should do a better job of ...
7 years, 9 months ago (2013-02-27 18:52:49 UTC) #11
Scott Hess - ex-Googler
On 2013/02/27 18:52:49, rsesek wrote: > PTAL. I agree with Eric that our backend infrastructure ...
7 years, 9 months ago (2013-02-27 20:28:34 UTC) #12
eroman
LGTM after answering my integer rounding question. https://codereview.chromium.org/12211080/diff/17001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/12211080/diff/17001/base/debug/crash_logging.cc#newcode53 base/debug/crash_logging.cc:53: i < ...
7 years, 9 months ago (2013-03-01 07:25:24 UTC) #13
Scott Hess - ex-Googler
https://codereview.chromium.org/12211080/diff/17001/base/debug/crash_logging.cc File base/debug/crash_logging.cc (right): https://codereview.chromium.org/12211080/diff/17001/base/debug/crash_logging.cc#newcode53 base/debug/crash_logging.cc:53: i < crash_key->max_length / g_chunk_max_length_; On 2013/03/01 07:25:24, eroman ...
7 years, 9 months ago (2013-03-01 15:16:49 UTC) #14
Robert Sesek
On 2013/02/27 20:28:34, shess wrote: > On 2013/02/27 18:52:49, rsesek wrote: > > PTAL. I ...
7 years, 9 months ago (2013-03-01 20:02:34 UTC) #15
Scott Hess - ex-Googler
On Fri, Mar 1, 2013 at 12:02 PM, <rsesek@chromium.org> wrote: > The "Never chunked" is ...
7 years, 9 months ago (2013-03-01 20:32:25 UTC) #16
Robert Sesek
On 2013/03/01 20:32:25, shess wrote: > On Fri, Mar 1, 2013 at 12:02 PM, <mailto:rsesek@chromium.org> ...
7 years, 9 months ago (2013-03-01 20:50:26 UTC) #17
Robert Sesek
+brettw for chrome/ and base/ OWNERS
7 years, 9 months ago (2013-03-04 21:56:03 UTC) #18
brettw
owners lgtm
7 years, 9 months ago (2013-03-05 06:43:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/12211080/26001
7 years, 9 months ago (2013-03-05 16:58:36 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 9 months ago (2013-03-05 18:51:38 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rsesek@chromium.org/12211080/35002
7 years, 9 months ago (2013-03-05 19:35:21 UTC) #22
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 9 months ago (2013-03-05 19:43:29 UTC) #23
Robert Sesek
7 years, 9 months ago (2013-03-05 21:56:08 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 manually as r186267 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698