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

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: 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
« no previous file with comments | « Source/modules/geolocation/PositionOptions.cpp ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('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 174ee37d23e3eb1768b5c7d7d7e03f61bbc38833..2f21a18c0b8c36e36c703a35d11047cc351377c0 100644
--- a/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/Source/modules/indexeddb/IDBDatabase.cpp
@@ -203,12 +203,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);
« no previous file with comments | « Source/modules/geolocation/PositionOptions.cpp ('k') | Source/modules/indexeddb/IDBObjectStore.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698