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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp

Issue 1761853002: Shut down all threads before the main thread shuts down (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
index 060dfc515eb5bd610645cfb1ce8f456a002af07b..6cd258b7248650cc948c7818b9ad17ec035878b8 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
@@ -56,9 +56,9 @@ DatabaseManager& DatabaseManager::manager()
void DatabaseManager::terminateDatabaseThread()
{
- ASSERT(isMainThread());
if (!s_databaseManager)
return;
+ ASSERT(isMainThread());
haraken 2016/03/03 12:08:46 I moved this check because after this CL, shutdown
for (const Member<DatabaseContext>& context : s_databaseManager->m_contextMap.values())
context->stopDatabases();
}

Powered by Google App Engine
This is Rietveld 408576698