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

Unified Diff: third_party/WebKit/Source/modules/webdatabase/DatabaseManager.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/DatabaseManager.cpp
diff --git a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
index b488b96a0f973541ac8fe4b18c48702b38ef8df8..d019b7d066725de1b586ba11c0770ccf47d07d21 100644
--- a/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
+++ b/third_party/WebKit/Source/modules/webdatabase/DatabaseManager.cpp
@@ -30,6 +30,7 @@
#include "core/dom/ExceptionCode.h"
#include "core/dom/ExecutionContext.h"
#include "core/dom/ExecutionContextTask.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "core/inspector/ConsoleMessage.h"
#include "modules/webdatabase/Database.h"
#include "modules/webdatabase/DatabaseCallback.h"
@@ -209,9 +210,10 @@ Database* DatabaseManager::openDatabase(ExecutionContext* context,
STORAGE_DVLOG(1) << "Scheduling DatabaseCreationCallbackTask for database "
<< database;
database->getExecutionContext()->postTask(
- BLINK_FROM_HERE, createSameThreadTask(&databaseCallbackHandleEvent,
- wrapPersistent(creationCallback),
- wrapPersistent(database)),
+ TaskType::DatabaseAccess, BLINK_FROM_HERE,
+ createSameThreadTask(&databaseCallbackHandleEvent,
+ wrapPersistent(creationCallback),
+ wrapPersistent(database)),
"openDatabase");
}

Powered by Google App Engine
This is Rietveld 408576698