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

Unified Diff: chrome/browser/metrics/metrics_service.cc

Issue 10981061: Add extra buckets to CrashExitCodes histogram for sandbox terminations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix liscence header Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sandbox/win/src/sandbox_types.h » ('j') | sandbox/win/src/sandbox_types.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/metrics_service.cc
diff --git a/chrome/browser/metrics/metrics_service.cc b/chrome/browser/metrics/metrics_service.cc
index 8dc8dcff1087d123df9423b12dd2bcdc4e8283a6..293af4db8496be65c25bd994f34bd8cd2269b00a 100644
--- a/chrome/browser/metrics/metrics_service.cc
+++ b/chrome/browser/metrics/metrics_service.cc
@@ -215,6 +215,7 @@
#if defined(OS_WIN)
#include <windows.h> // Needed for STATUS_* codes
+#include "sandbox/win/src/sandbox_types.h" // For termination codes.
#endif
using base::Time;
@@ -346,6 +347,12 @@ std::vector<int> GetAllCrashExitCodes() {
for (size_t i = 0; i < arraysize(kExceptionCodes); ++i)
codes.push_back(MapCrashExitCodeForHistogram(kExceptionCodes[i]));
+
+ // Add the sandbox fatal termination codes.
+ for (int i = sandbox::SBOX_FATAL_INTEGRITY;
rvargas (doing something else) 2012/09/28 18:12:12 Does it matter that these values are numerically l
eroman 2012/09/28 19:28:29 It doesn't matter, since CustomHistogram internall
+ i <= sandbox::SBOX_FATAL_LAST; ++i) {
+ codes.push_back(MapCrashExitCodeForHistogram(i));
+ }
#endif
return codes;
« no previous file with comments | « no previous file | sandbox/win/src/sandbox_types.h » ('j') | sandbox/win/src/sandbox_types.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698