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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Addressed most of dcheng@'s feedback. 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 18316041be5357b4606c7b1ebe7561ea10ca7364..34e8e745423429aa4d27e37dc43786a5bf10b100 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp
@@ -413,6 +413,9 @@ void IDBDatabase::closeConnection() {
m_backend.reset();
}
+ if (m_databaseCallbacks)
+ m_databaseCallbacks->detachWebCallbacks();
+
if (m_contextStopped || !getExecutionContext())
return;
@@ -515,6 +518,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