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

Unified Diff: Source/modules/indexeddb/IDBObjectStore.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/IDBObjectStore.cpp
diff --git a/Source/modules/indexeddb/IDBObjectStore.cpp b/Source/modules/indexeddb/IDBObjectStore.cpp
index c7b46bab9b8d392fea5e37dae140ff933afb0480..ed8ec9ae2ff2f7504449ac09c3908d8e77228bff 100644
--- a/Source/modules/indexeddb/IDBObjectStore.cpp
+++ b/Source/modules/indexeddb/IDBObjectStore.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "modules/indexeddb/IDBObjectStore.h"
+#include "bindings/core/v8/Dictionary.h"
+#include "bindings/core/v8/DictionaryHelper.h"
#include "bindings/core/v8/ExceptionState.h"
#include "bindings/core/v8/ExceptionStatePlaceholder.h"
#include "bindings/core/v8/ScriptState.h"
@@ -386,10 +388,10 @@ private:
IDBIndex* IDBObjectStore::createIndex(ScriptState* scriptState, const String& name, const IDBKeyPath& keyPath, const Dictionary& options, ExceptionState& exceptionState)
{
bool unique = false;
- options.get("unique", unique);
+ DictionaryHelper::get(options, "unique", unique);
bool multiEntry = false;
- options.get("multiEntry", multiEntry);
+ DictionaryHelper::get(options, "multiEntry", multiEntry);
return createIndex(scriptState, name, keyPath, unique, multiEntry, exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698