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

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

Issue 2624443003: Enable ThreadRestrictionVerifier for StringImpl (Closed)
Patch Set: static assert Created 3 years, 11 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/SQLTransactionClient.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/SQLTransactionClient.cpp b/third_party/WebKit/Source/modules/webdatabase/SQLTransactionClient.cpp
index 47dbb0eeb1627548a49ebcff65bb0c6b49033241..3cbac44a77e683ed40214d6166838526e22431df 100644
--- a/third_party/WebKit/Source/modules/webdatabase/SQLTransactionClient.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/SQLTransactionClient.cpp
@@ -65,16 +65,14 @@ void SQLTransactionClient::didCommitWriteTransaction(Database* database) {
String databaseName = database->stringIdentifier();
ExecutionContext* executionContext =
database->getDatabaseContext()->getExecutionContext();
+ SecurityOrigin* origin = database->getSecurityOrigin();
if (!executionContext->isContextThread()) {
executionContext->postTask(
TaskType::DatabaseAccess, BLINK_FROM_HERE,
- createCrossThreadTask(
- &databaseModifiedCrossThread,
- executionContext->getSecurityOrigin()->toRawString(),
- databaseName));
+ createCrossThreadTask(&databaseModifiedCrossThread,
+ origin->toRawString(), databaseName));
} else {
- databaseModified(WebSecurityOrigin(executionContext->getSecurityOrigin()),
- databaseName);
+ databaseModified(WebSecurityOrigin(origin), databaseName);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698