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

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

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 | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | components/leveldb/public/cpp/util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/public/cpp/util.h
diff --git a/components/leveldb/public/cpp/util.h b/components/leveldb/public/cpp/util.h
index 1054cad126d9e985ae77f1aa6f2ccc6c22fe8f2a..4a5618f81fcbfbd7c4df861ff3557f2ff41ee233 100644
--- a/components/leveldb/public/cpp/util.h
+++ b/components/leveldb/public/cpp/util.h
@@ -6,6 +6,7 @@
#define COMPONENTS_LEVELDB_PUBLIC_CPP_UTIL_H_
#include "components/leveldb/public/interfaces/leveldb.mojom.h"
+#include "third_party/leveldatabase/env_chromium.h"
namespace leveldb {
@@ -23,7 +24,8 @@ leveldb::Status DatabaseErrorToStatus(mojom::DatabaseError e,
const Slice& msg2);
// Returns an UMA value for a mojom::DatabaseError.
-int GetLevelDBStatusUMAValue(mojom::DatabaseError status);
+leveldb_env::LevelDBStatusValue GetLevelDBStatusUMAValue(
+ mojom::DatabaseError status);
// Builds a Slice pointing to the data inside |a|. This is not a type-converter
// as it is not a copy operation; the returned Slice points into |a| and must
« no previous file with comments | « chrome/browser/ui/webui/signin/inline_login_handler_impl.cc ('k') | components/leveldb/public/cpp/util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698