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

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

Issue 214163004: Oilpan: Move database closing task in ~DatabaseBackendSync to a pre-finalization hook with HeapHash… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a FIXME comment Created 6 years, 9 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 | « no previous file | Source/modules/webdatabase/DatabaseContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webdatabase/DatabaseBackendSync.cpp
diff --git a/Source/modules/webdatabase/DatabaseBackendSync.cpp b/Source/modules/webdatabase/DatabaseBackendSync.cpp
index ceedfa69f31cc907daf30739c6410a75366c25ca..0e9c8ee211ecc1dddf1bd638746035f5ac043f28 100644
--- a/Source/modules/webdatabase/DatabaseBackendSync.cpp
+++ b/Source/modules/webdatabase/DatabaseBackendSync.cpp
@@ -38,6 +38,7 @@ DatabaseBackendSync::DatabaseBackendSync(DatabaseContext* databaseContext, const
DatabaseBackendSync::~DatabaseBackendSync()
{
+#if !ENABLE(OILPAN)
// SQLite is "multi-thread safe", but each database handle can only be used
// on a single thread at a time.
//
@@ -48,6 +49,8 @@ DatabaseBackendSync::~DatabaseBackendSync()
ASSERT(m_databaseContext->isContextThread());
closeDatabase();
}
+#endif
+ ASSERT(!opened());
}
void DatabaseBackendSync::trace(Visitor* visitor)
« no previous file with comments | « no previous file | Source/modules/webdatabase/DatabaseContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698