| Index: third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
|
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
|
| index 7ae9f74d393ae8ab7c96ab0cfcaa3e6102461422..0416292bd606083be23cc6e9b3ad55718057e454 100644
|
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
|
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBKeyPath.cpp
|
| @@ -134,22 +134,22 @@ IDBKeyPath::IDBKeyPath(const StringOrStringSequence& keyPath)
|
| }
|
| }
|
|
|
| -IDBKeyPath::IDBKeyPath(const WebIDBKeyPath& keyPath)
|
| +IDBKeyPath::IDBKeyPath(const indexed_db::mojom::blink::KeyPathPtr& keyPath)
|
| {
|
| - switch (keyPath.keyPathType()) {
|
| - case WebIDBKeyPathTypeNull:
|
| + switch (keyPath->type) {
|
| + case indexed_db::mojom::blink::KeyPathType::NONE:
|
| m_type = NullType;
|
| return;
|
|
|
| - case WebIDBKeyPathTypeString:
|
| + case indexed_db::mojom::blink::KeyPathType::STRING:
|
| m_type = StringType;
|
| - m_string = keyPath.string();
|
| + m_string = keyPath->data->get_str();
|
| return;
|
|
|
| - case WebIDBKeyPathTypeArray:
|
| + case indexed_db::mojom::blink::KeyPathType::ARRAY:
|
| m_type = ArrayType;
|
| - for (size_t i = 0, size = keyPath.array().size(); i < size; ++i)
|
| - m_array.append(keyPath.array()[i]);
|
| + for (size_t i = 0, size = keyPath->data->get_arr().size(); i < size; ++i)
|
| + m_array.append(keyPath->data->get_arr()[i]);
|
| return;
|
| }
|
| ASSERT_NOT_REACHED();
|
|
|