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

Unified Diff: Source/modules/webdatabase/DatabaseContext.cpp

Issue 183093002: Ensure that scheduled tasks are executed during db thread shutdown (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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: Source/modules/webdatabase/DatabaseContext.cpp
diff --git a/Source/modules/webdatabase/DatabaseContext.cpp b/Source/modules/webdatabase/DatabaseContext.cpp
index 6e5b2410b435202d2f886be8994547fb1db822d4..756e1dd76e4d96097443348bcb49fc8dae4a9834 100644
--- a/Source/modules/webdatabase/DatabaseContext.cpp
+++ b/Source/modules/webdatabase/DatabaseContext.cpp
@@ -198,6 +198,8 @@ void DatabaseContext::stopSyncDatabases()
bool DatabaseContext::stopDatabases(DatabaseTaskSynchronizer* cleanupSync)
{
+ DatabaseManager::manager().interruptAllDatabasesForContext(executionContext());
+
stopSyncDatabases();
if (m_isRegistered) {
DatabaseManager::manager().unregisterDatabaseContext(this);

Powered by Google App Engine
This is Rietveld 408576698