summaryrefslogtreecommitdiffstats
path: root/storage/browser
diff options
context:
space:
mode:
authorcmumford <cmumford@chromium.org>2015-06-22 11:44:30 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-22 18:44:58 +0000
commitdc6e7636238cf1d2ccf204c6416421c8e3a4208f (patch)
tree6591ba4fc4d48851797c997a4bf58fcf8e811419 /storage/browser
parent13c5c463e5ac7e561b4d3d919010d7b206509f5e (diff)
downloadchromium_src-dc6e7636238cf1d2ccf204c6416421c8e3a4208f.zip
chromium_src-dc6e7636238cf1d2ccf204c6416421c8e3a4208f.tar.gz
chromium_src-dc6e7636238cf1d2ccf204c6416421c8e3a4208f.tar.bz2
Added Histogram entries for some FileSystem stats.
These values were being recorded, but without entries in histograms.xml were not visible on UMA. Added entries for: 1. FileSystem.DirectoryDatabaseRepair 2. FileSystem.OpenFileSystemDetail Also, added a warning comment above the UMA enumerations to help avoid incorrect future modifications. BUG=497956 Review URL: https://codereview.chromium.org/1186863004 Cr-Commit-Position: refs/heads/master@{#335533}
Diffstat (limited to 'storage/browser')
-rw-r--r--storage/browser/fileapi/sandbox_directory_database.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/browser/fileapi/sandbox_directory_database.cc b/storage/browser/fileapi/sandbox_directory_database.cc
index ed900ec..7f7a707 100644
--- a/storage/browser/fileapi/sandbox_directory_database.cc
+++ b/storage/browser/fileapi/sandbox_directory_database.cc
@@ -77,6 +77,8 @@ const char kInitStatusHistogramLabel[] = "FileSystem.DirectoryDatabaseInit";
const char kDatabaseRepairHistogramLabel[] =
"FileSystem.DirectoryDatabaseRepair";
+// These values are recorded in UMA. Changing existing values will invalidate
+// results for older Chrome releases. Only add new values.
enum InitStatus {
INIT_STATUS_OK = 0,
INIT_STATUS_CORRUPTION,
@@ -85,6 +87,8 @@ enum InitStatus {
INIT_STATUS_MAX
};
+// These values are recorded in UMA. Changing existing values will invalidate
+// results for older Chrome releases. Only add new values.
enum RepairResult {
DB_REPAIR_SUCCEEDED = 0,
DB_REPAIR_FAILED,