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

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

Issue 1909813002: Enable per thread heap for database thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/SQLStatement.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp b/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
index 980bf95dccbef2f0ba60f929bb8fc35294021ee7..e683a3c8ed9af3cec6748a271d3f017af36c2db5 100644
--- a/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/SQLStatement.cpp
@@ -54,6 +54,8 @@ SQLStatement::SQLStatement(Database* database, SQLStatementCallback* callback,
: m_statementCallback(callback)
, m_statementErrorCallback(errorCallback)
{
+ DCHECK(isMainThread());
+
if (hasCallback() || hasErrorCallback())
InspectorInstrumentation::asyncTaskScheduled(database->getExecutionContext(), "SQLStatement", this);
}

Powered by Google App Engine
This is Rietveld 408576698