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

Unified Diff: third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h

Issue 2584233002: Specify TaskType of posted Task explicitly in FileAPIs (4) (Closed)
Patch Set: 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/filesystem/DOMFileSystem.h
diff --git a/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h b/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h
index 1f4e6601cec08571860884f4ef0d4c85567caee0..e643af1652f48aab5e280946e7b55578b810afa0 100644
--- a/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h
+++ b/third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h
@@ -36,6 +36,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/dom/ExecutionContextTask.h"
#include "core/dom/SuspendableObject.h"
+#include "core/dom/TaskRunnerHelper.h"
#include "modules/ModulesExport.h"
#include "modules/filesystem/DOMFileSystemBase.h"
#include "modules/filesystem/EntriesCallback.h"
@@ -90,8 +91,8 @@ class MODULES_EXPORT DOMFileSystem final
static void scheduleCallback(ExecutionContext* executionContext,
std::unique_ptr<ExecutionContextTask> task) {
DCHECK(executionContext->isContextThread());
- executionContext->postTask(BLINK_FROM_HERE, std::move(task),
- taskNameForInstrumentation());
+ executionContext->postTask(TaskType::FileReading, BLINK_FROM_HERE,
+ std::move(task), taskNameForInstrumentation());
}
DECLARE_VIRTUAL_TRACE();

Powered by Google App Engine
This is Rietveld 408576698