| Index: webkit/fileapi/file_system_directory_database.cc
|
| diff --git a/webkit/fileapi/file_system_directory_database.cc b/webkit/fileapi/file_system_directory_database.cc
|
| index 6eb1df9567d42a6126b7af8d932938d048af22a5..c25e006a2f56ea51bc318035d89729e6056dc371 100644
|
| --- a/webkit/fileapi/file_system_directory_database.cc
|
| +++ b/webkit/fileapi/file_system_directory_database.cc
|
| @@ -74,6 +74,8 @@ const char kInitStatusHistogramLabel[] = "FileSystem.DirectoryDatabaseInit";
|
| enum InitStatus {
|
| INIT_STATUS_OK = 0,
|
| INIT_STATUS_CORRUPTION,
|
| + INIT_STATUS_IO_ERROR,
|
| + INIT_STATUS_UNKNOWN_ERROR,
|
| INIT_STATUS_MAX
|
| };
|
|
|
| @@ -444,9 +446,15 @@ void FileSystemDirectoryDatabase::ReportInitStatus(
|
| if (status.ok()) {
|
| UMA_HISTOGRAM_ENUMERATION(kInitStatusHistogramLabel,
|
| INIT_STATUS_OK, INIT_STATUS_MAX);
|
| - } else {
|
| + } else if (status.IsCorruption()) {
|
| UMA_HISTOGRAM_ENUMERATION(kInitStatusHistogramLabel,
|
| INIT_STATUS_CORRUPTION, INIT_STATUS_MAX);
|
| + } else if (status.IsIOError()) {
|
| + UMA_HISTOGRAM_ENUMERATION(kInitStatusHistogramLabel,
|
| + INIT_STATUS_IO_ERROR, INIT_STATUS_MAX);
|
| + } else {
|
| + UMA_HISTOGRAM_ENUMERATION(kInitStatusHistogramLabel,
|
| + INIT_STATUS_UNKNOWN_ERROR, INIT_STATUS_MAX);
|
| }
|
| }
|
|
|
|
|