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

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

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Rebase over the Blink reformatting. 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 27ac511383a68a6b98a538db508c9a15e929c52a..c9dab967b630c120f540dc963b386f845fbad671 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::stop() {
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