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); |
} |