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

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

Issue 14267029: Prepare to eliminate WebDOMStringList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix names duplication in conversion Created 7 years, 8 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/modules/indexeddb/IDBCallbacks.h ('k') | Source/modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBFactoryBackendImpl.cpp
diff --git a/Source/modules/indexeddb/IDBFactoryBackendImpl.cpp b/Source/modules/indexeddb/IDBFactoryBackendImpl.cpp
index d706ad56412ec9b24995a7f7fe40d75ac5b7df6f..c034df5db777a7afc2cccb75296ed2e449c7bb75 100644
--- a/Source/modules/indexeddb/IDBFactoryBackendImpl.cpp
+++ b/Source/modules/indexeddb/IDBFactoryBackendImpl.cpp
@@ -88,13 +88,7 @@ void IDBFactoryBackendImpl::getDatabaseNames(PassRefPtr<IDBCallbacks> callbacks,
return;
}
- RefPtr<DOMStringList> databaseNames = DOMStringList::create();
-
- Vector<String> foundNames = backingStore->getDatabaseNames();
- for (Vector<String>::const_iterator it = foundNames.begin(); it != foundNames.end(); ++it)
- databaseNames->append(*it);
-
- callbacks->onSuccess(databaseNames.release());
+ callbacks->onSuccess(backingStore->getDatabaseNames());
}
void IDBFactoryBackendImpl::deleteDatabase(const String& name, PassRefPtr<IDBCallbacks> callbacks, PassRefPtr<SecurityOrigin> securityOrigin, ScriptExecutionContext*, const String& dataDirectory)
« no previous file with comments | « Source/modules/indexeddb/IDBCallbacks.h ('k') | Source/modules/indexeddb/IDBRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698