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

Unified Diff: components/leveldb/public/cpp/util.cc

Issue 2886933003: Use stricter type checking in UMA_HISTOGRAM_ENUMERATION (Closed)
Patch Set: simplify type checking Created 3 years, 5 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 | « components/leveldb/public/cpp/util.h ('k') | components/metrics/stability_metrics_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/public/cpp/util.cc
diff --git a/components/leveldb/public/cpp/util.cc b/components/leveldb/public/cpp/util.cc
index 5ca6864bfb5dd4b5a6cf3d75096e4bda3ef56950..d20044d90cf42647eb420aefe56c8843269940e6 100644
--- a/components/leveldb/public/cpp/util.cc
+++ b/components/leveldb/public/cpp/util.cc
@@ -46,7 +46,8 @@ leveldb::Status DatabaseErrorToStatus(mojom::DatabaseError e,
return leveldb::Status::InvalidArgument(msg, msg2);
}
-int GetLevelDBStatusUMAValue(mojom::DatabaseError status) {
+leveldb_env::LevelDBStatusValue GetLevelDBStatusUMAValue(
+ mojom::DatabaseError status) {
switch (status) {
case mojom::DatabaseError::OK:
return leveldb_env::LEVELDB_STATUS_OK;
« no previous file with comments | « components/leveldb/public/cpp/util.h ('k') | components/metrics/stability_metrics_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698