Chromium Code Reviews| Index: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
| diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
| index fa8eda53199a792a5f9e622d354908b9379f16d1..23c209722f6b4b7c1fabbac45e297035ff689c24 100644 |
| --- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
| +++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp |
| @@ -170,6 +170,12 @@ DOMStringList* IDBDatabase::objectStoreNames() const |
| return objectStoreNames; |
| } |
| +const String& IDBDatabase::getObjectStoreName(int64_t objectStoreId) const |
| +{ |
| + auto it = m_metadata.objectStores.find(objectStoreId); |
|
jsbell
2016/07/11 18:25:33
Should this have ASSERT_WITH_SECURITY_IMPLICATION(
palakj1
2016/07/11 22:25:40
changed to using []
|
| + return it->value.name; |
| +} |
| + |
| IDBObjectStore* IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncrement, ExceptionState& exceptionState) |
| { |
| IDB_TRACE("IDBDatabase::createObjectStore"); |