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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Address last nits and fix leaks in unit tests. Created 4 years, 2 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: 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 fb1d7dce00a1117b51e0da271513027838cce203..e1be62e735c649701c472356d6cebedadc2d66f6 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
@@ -394,6 +394,9 @@ void IDBDatabase::closeConnection() {
m_backend.reset();
}
+ if (m_databaseCallbacks)
+ m_databaseCallbacks->detachWebCallbacks();
+
if (m_contextStopped || !getExecutionContext())
return;
@@ -526,6 +529,9 @@ void IDBDatabase::contextDestroyed() {
m_backend->close();
m_backend.reset();
}
+
+ if (m_databaseCallbacks)
+ m_databaseCallbacks->detachWebCallbacks();
}
const AtomicString& IDBDatabase::interfaceName() const {

Powered by Google App Engine
This is Rietveld 408576698