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

Unified Diff: Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp

Issue 14267029: Prepare to eliminate WebDOMStringList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp
diff --git a/Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp b/Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp
index 89edf597fd684b5988c6e976ee82d51a5440e5e4..13f471bef1734342bb3249bfd0c1c8569c720c59 100644
--- a/Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp
+++ b/Source/WebKit/chromium/src/WebIDBCallbacksImpl.cpp
@@ -60,7 +60,18 @@ void WebIDBCallbacksImpl::onError(const WebIDBDatabaseError& error)
void WebIDBCallbacksImpl::onSuccess(const WebDOMStringList& domStringList)
{
- m_callbacks->onSuccess(domStringList);
+ Vector<String> stringList(domStringList.length());
+ for (size_t i = 0; i < domStringList.length(); ++i)
+ stringList.append(domStringList.item(i));
+ m_callbacks->onSuccess(stringList);
+}
+
+void WebIDBCallbacksImpl::onSuccess(const WebVector<WebString>& webStringList)
+{
+ Vector<String> stringList(webStringList.size());
+ for (size_t i = 0; i < webStringList.size(); ++i)
+ stringList.append(webStringList[i]);
+ m_callbacks->onSuccess(stringList);
}
void WebIDBCallbacksImpl::onSuccess(WebIDBCursor* cursor, const WebIDBKey& key, const WebIDBKey& primaryKey, const WebData& value)

Powered by Google App Engine
This is Rietveld 408576698