Index: third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp |
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp |
index aa6524d1ebddae195ea237a791b8b3d7d2c62beb..71ccf3d4f7fa6e7cf935eddf98135f78e28983c8 100644 |
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp |
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp |
@@ -191,6 +191,19 @@ void IDBTransaction::objectStoreDeleted(const String& name) |
} |
} |
+void IDBTransaction::objectStoreRenamed(const String& oldName, const String& newName) |
+{ |
+ DCHECK(m_state != Finished); |
+ DCHECK(isVersionChange()); |
+ |
+ DCHECK(!m_objectStoreMap.contains(newName)); |
+ DCHECK(m_objectStoreMap.contains(oldName)) << "The object store had to be accessed in order to be renamed."; |
+ |
+ IDBObjectStoreMap::iterator it = m_objectStoreMap.find(oldName); |
+ m_objectStoreMap.set(newName, it->value); |
+ m_objectStoreMap.remove(oldName); |
+} |
+ |
void IDBTransaction::setActive(bool active) |
{ |
DCHECK_NE(m_state, Finished) << "A finished transaction tried to setActive(" << (active ? "true" : "false") << ")"; |