summaryrefslogtreecommitdiffstats
path: root/content/child
diff options
context:
space:
mode:
Diffstat (limited to 'content/child')
-rw-r--r--content/child/indexed_db/indexed_db_key_builders.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/child/indexed_db/indexed_db_key_builders.cc b/content/child/indexed_db/indexed_db_key_builders.cc
index 162546c..a17065f 100644
--- a/content/child/indexed_db/indexed_db_key_builders.cc
+++ b/content/child/indexed_db/indexed_db_key_builders.cc
@@ -10,6 +10,7 @@
using blink::WebIDBKey;
using blink::WebIDBKeyRange;
using blink::WebIDBKeyTypeArray;
+using blink::WebIDBKeyTypeBinary;
using blink::WebIDBKeyTypeDate;
using blink::WebIDBKeyTypeInvalid;
using blink::WebIDBKeyTypeMin;
@@ -44,6 +45,9 @@ IndexedDBKey IndexedDBKeyBuilder::Build(const blink::WebIDBKey& key) {
switch (key.keyType()) {
case WebIDBKeyTypeArray:
return IndexedDBKey(CopyKeyArray(key));
+ case WebIDBKeyTypeBinary:
+ return IndexedDBKey(
+ std::string(key.binary().data(), key.binary().size()));
case WebIDBKeyTypeString:
return IndexedDBKey(key.string());
case WebIDBKeyTypeDate:
@@ -72,6 +76,8 @@ WebIDBKey WebIDBKeyBuilder::Build(const IndexedDBKey& key) {
}
return WebIDBKey::createArray(web_array);
}
+ case WebIDBKeyTypeBinary:
+ return WebIDBKey::createBinary(key.binary());
case WebIDBKeyTypeString:
return WebIDBKey::createString(key.string());
case WebIDBKeyTypeDate: