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

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

Issue 373423002: Split Dictionary's get and convert into DictionaryHelper. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed LICENSE and windows build Created 6 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
Index: Source/modules/indexeddb/IDBDatabase.cpp
diff --git a/Source/modules/indexeddb/IDBDatabase.cpp b/Source/modules/indexeddb/IDBDatabase.cpp
index 174ee37d23e3eb1768b5c7d7d7e03f61bbc38833..994f0752c66bfe9e6fe8825de444d37acfa29fb8 100644
--- a/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/Source/modules/indexeddb/IDBDatabase.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "modules/indexeddb/IDBDatabase.h"
+#include "bindings/core/v8/DictionaryHelper.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "bindings/core/v8/Nullable.h"
@@ -203,12 +204,12 @@ IDBObjectStore* IDBDatabase::createObjectStore(const String& name, const Diction
if (!options.isUndefinedOrNull()) {
String keyPathString;
Vector<String> keyPathArray;
- if (options.get("keyPath", keyPathArray))
+ if (DictionaryHelper::get(options, "keyPath", keyPathArray))
keyPath = IDBKeyPath(keyPathArray);
else if (options.getWithUndefinedOrNullCheck("keyPath", keyPathString))
keyPath = IDBKeyPath(keyPathString);
- options.get("autoIncrement", autoIncrement);
+ DictionaryHelper::get(options, "autoIncrement", autoIncrement);
}
return createObjectStore(name, keyPath, autoIncrement, exceptionState);

Powered by Google App Engine
This is Rietveld 408576698