Chromium Code Reviews| Index: Source/modules/webdatabase/DatabaseManager.cpp |
| diff --git a/Source/modules/webdatabase/DatabaseManager.cpp b/Source/modules/webdatabase/DatabaseManager.cpp |
| index 5854cee9cf4a0be9c8ea672247ba479677eee7cc..3d59cc1f68c79b1430277df9e27a30a8dc587737 100644 |
| --- a/Source/modules/webdatabase/DatabaseManager.cpp |
| +++ b/Source/modules/webdatabase/DatabaseManager.cpp |
| @@ -59,9 +59,8 @@ void DatabaseManager::terminateDatabaseThread() |
| ASSERT(isMainThread()); |
| if (!s_databaseManager || s_databaseManager->m_contextMap.isEmpty()) |
|
haraken
2015/02/12 08:36:53
Now you won't need the m_contextMap.isEmpty() chec
tkent
2015/02/12 08:39:50
Done.
|
| 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() |