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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBKey.h

Issue 2676403003: IndexedDB: Add histograms for key type (Closed)
Patch Set: Created 3 years, 10 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
Index: third_party/WebKit/Source/modules/indexeddb/IDBKey.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKey.h b/third_party/WebKit/Source/modules/indexeddb/IDBKey.h
index 4b9ff354ec8b6fc7d97572886c98e97731d8848e..8b45a8f55b2d24aa76d4c97d2d3c8e72018d02ee 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBKey.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBKey.h
@@ -63,6 +63,7 @@ class MODULES_EXPORT IDBKey : public GarbageCollectedFinalized<IDBKey> {
DECLARE_TRACE();
// In order of the least to the highest precedent in terms of sort order.
+ // Also used for UMA. Append only.
enum Type {
InvalidType = 0,
ArrayType,
@@ -70,7 +71,7 @@ class MODULES_EXPORT IDBKey : public GarbageCollectedFinalized<IDBKey> {
StringType,
DateType,
NumberType,
- MinType
+ TypeEnumMax = NumberType
};
Type getType() const { return m_type; }

Powered by Google App Engine
This is Rietveld 408576698