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