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

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

Issue 2584263002: Specify TaskType of posted Task explicitly in WebSQL (9) (Closed)
Patch Set: rebase Created 4 years 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/DatabaseTracker.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
index 7b438f01a95283585aa903e7b628f8ccf8087069..c85da9c43dcaeee0bb3cd8380663d8cb594dfb2f 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseTracker.cpp
@@ -33,6 +33,7 @@
#include "core/dom/Document.h"
#include "core/dom/ExecutionContext.h"
#include "core/dom/ExecutionContextTask.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "modules/webdatabase/Database.h"
#include "modules/webdatabase/DatabaseClient.h"
#include "modules/webdatabase/DatabaseContext.h"
@@ -188,7 +189,7 @@ void DatabaseTracker::closeDatabasesImmediately(SecurityOrigin* origin,
for (DatabaseSet::iterator it = databaseSet->begin();
it != databaseSet->end(); ++it)
(*it)->getDatabaseContext()->getExecutionContext()->postTask(
- BLINK_FROM_HERE,
+ TaskType::DatabaseAccess, BLINK_FROM_HERE,
createCrossThreadTask(&DatabaseTracker::closeOneDatabaseImmediately,
crossThreadUnretained(this), originString, name,
*it));

Powered by Google App Engine
This is Rietveld 408576698