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

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

Issue 925263004: Merge 190035 "DatabaseManager::terminateDatabaseThread should ha..." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/2272/
Patch Set: Created 5 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
« no previous file with comments | « Source/modules/webdatabase/DatabaseManager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseManager.cpp
===================================================================
--- Source/modules/webdatabase/DatabaseManager.cpp (revision 190225)
+++ Source/modules/webdatabase/DatabaseManager.cpp (working copy)
@@ -57,11 +57,10 @@
void DatabaseManager::terminateDatabaseThread()
{
ASSERT(isMainThread());
- if (!s_databaseManager || s_databaseManager->m_contextMap.isEmpty())
+ if (!s_databaseManager)
return;
- // We have at most one DatabaseContext, which is for the main thread.
- ASSERT(s_databaseManager->m_contextMap.size() == 1);
- (*s_databaseManager->m_contextMap.values().begin())->stopDatabases();
+ for (const Member<DatabaseContext>& context : s_databaseManager->m_contextMap.values())
+ context->stopDatabases();
}
DatabaseManager::DatabaseManager()
« no previous file with comments | « Source/modules/webdatabase/DatabaseManager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698