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

Issue 10981061: Add extra buckets to CrashExitCodes histogram for sandbox terminations (Closed)

Created:
8 years, 2 months ago by eroman
Modified:
8 years, 2 months ago
CC:
chromium-reviews, MAD, Ilya Sherman, jar (doing other things), kaiwang
Visibility:
Public.

Description

Add extra buckets to CrashExitCodes histogram for sandbox terminations. BUG=152814 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=159215

Patch Set 1 #

Patch Set 2 : removespaceing #

Patch Set 3 : Add sandbox error codes #

Patch Set 4 : fix long line #

Patch Set 5 : remove the arbitrary +5 #

Patch Set 6 : fix liscence header #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -2 lines) Patch
M chrome/browser/metrics/metrics_service.cc View 1 2 3 4 2 chunks +7 lines, -0 lines 2 comments Download
M sandbox/win/src/sandbox_types.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 2 comments Download

Messages

Total messages: 12 (0 generated)
eroman
8 years, 2 months ago (2012-09-27 22:08:28 UTC) #1
jar (doing other things)
FYI: Kai will be landing the sparse histograms RSN. That will surely make this a ...
8 years, 2 months ago (2012-09-27 22:38:56 UTC) #2
eroman
Thanks for the review Jim! Note that I made an additional change since you reviewed, ...
8 years, 2 months ago (2012-09-27 22:46:49 UTC) #3
eroman
Justin, could you review my changes to sandbox_types.h? Thanks!
8 years, 2 months ago (2012-09-27 22:51:10 UTC) #4
jschuh
lgtm on the sandbox side
8 years, 2 months ago (2012-09-27 22:55:02 UTC) #5
jar (doing other things)
lgtm
8 years, 2 months ago (2012-09-28 02:04:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/10981061/1002
8 years, 2 months ago (2012-09-28 02:05:09 UTC) #7
commit-bot: I haz the power
Presubmit check for 10981061-1002 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-09-28 02:05:14 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/10981061/8002
8 years, 2 months ago (2012-09-28 02:11:48 UTC) #9
commit-bot: I haz the power
Change committed as 159215
8 years, 2 months ago (2012-09-28 05:54:55 UTC) #10
rvargas (doing something else)
Just a question... https://codereview.chromium.org/10981061/diff/8002/chrome/browser/metrics/metrics_service.cc File chrome/browser/metrics/metrics_service.cc (right): https://codereview.chromium.org/10981061/diff/8002/chrome/browser/metrics/metrics_service.cc#newcode352 chrome/browser/metrics/metrics_service.cc:352: for (int i = sandbox::SBOX_FATAL_INTEGRITY; Does ...
8 years, 2 months ago (2012-09-28 18:12:12 UTC) #11
eroman
8 years, 2 months ago (2012-09-28 19:28:29 UTC) #12
https://codereview.chromium.org/10981061/diff/8002/chrome/browser/metrics/met...
File chrome/browser/metrics/metrics_service.cc (right):

https://codereview.chromium.org/10981061/diff/8002/chrome/browser/metrics/met...
chrome/browser/metrics/metrics_service.cc:352: for (int i =
sandbox::SBOX_FATAL_INTEGRITY;
On 2012/09/28 18:12:12, rvargas wrote:
> Does it matter that these values are numerically lower than the exception
codes,
> yet here they appear later on the array?

It doesn't matter, since CustomHistogram internally sorts the range list. In
fact the kExceptionCodes[] isn't in sorted order either.

The good news is, once Kai lands support for sparse histograms, we can delete
all this code :)

https://codereview.chromium.org/10981061/diff/8002/sandbox/win/src/sandbox_ty...
File sandbox/win/src/sandbox_types.h (right):

https://codereview.chromium.org/10981061/diff/8002/sandbox/win/src/sandbox_ty...
sandbox/win/src/sandbox_types.h:1: // Copyright (c) 2012 The Chromium Authors.
All rights reserved.
On 2012/09/28 18:12:12, rvargas wrote:
> We were not supposed to touch dates anymore... yeah, I know some tool
complains.

Yeah, unfortunately the commit queue wouldn't let me land it without changing
this. I'll follow up with maruel and see if that was expected.

Powered by Google App Engine
This is Rietveld 408576698