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

Unified Diff: Source/modules/indexeddb/IDBDatabase.cpp

Issue 1162203003: Add use counters to determine the fate of DOMStringList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « Source/core/frame/UseCounter.h ('k') | Source/modules/indexeddb/IDBDatabase.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBDatabase.cpp
diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp
index d365d959afae1069d25fc9ad5a2c98841e6b0420..a5bec351800c1de5e58681149b2d6e4c33bbc0ab 100644
--- a/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/Source/modules/indexeddb/IDBDatabase.cpp
@@ -33,6 +33,7 @@
#include "bindings/modules/v8/V8BindingForModules.h"
#include "core/dom/ExecutionContext.h"
#include "core/events/EventQueue.h"
+#include "core/frame/UseCounter.h"
#include "core/inspector/ScriptCallStack.h"
#include "modules/indexeddb/IDBAny.h"
#include "modules/indexeddb/IDBEventDispatcher.h"
@@ -277,6 +278,7 @@ IDBTransaction* IDBDatabase::transaction(ScriptState* scriptState, const StringO
for (const String& name : storeNames.getAsStringSequence())
scope.add(name);
} else if (storeNames.isDOMStringList()) {
+ UseCounter::count(executionContext(), UseCounter::IDBDatabaseTransactionStoreNamesIsDOMStringList);
jsbell 2015/06/05 18:12:17 This won't tell us anything useful. Given that use
philipj_slow 2015/06/05 18:19:22 You're right, that sounds pretty useless, so I'll
const Vector<String>& list = *storeNames.getAsDOMStringList();
for (const String& name : list)
scope.add(name);
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/modules/indexeddb/IDBDatabase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698