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

Unified Diff: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp

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
« no previous file with comments | « third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
diff --git a/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp b/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
index fffdc8b8272dc0403e1055fe9e95f5b039b6bd6c..2a244b616d366c2eaa652c2c4b438305354282da 100644
--- a/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp
+++ b/third_party/WebKit/Source/modules/filesystem/LocalFileSystem.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 "core/fileapi/FileError.h"
#include "core/frame/LocalFrame.h"
#include "core/workers/WorkerGlobalScope.h"
@@ -159,7 +160,7 @@ void LocalFileSystem::requestFileSystemAccessInternal(
void LocalFileSystem::fileSystemNotAvailable(ExecutionContext* context,
CallbackWrapper* callbacks) {
context->postTask(
- BLINK_FROM_HERE,
+ TaskType::FileReading, BLINK_FROM_HERE,
createSameThreadTask(&reportFailure, WTF::passed(callbacks->release()),
FileError::kAbortErr));
}
@@ -167,7 +168,7 @@ void LocalFileSystem::fileSystemNotAvailable(ExecutionContext* context,
void LocalFileSystem::fileSystemNotAllowedInternal(ExecutionContext* context,
CallbackWrapper* callbacks) {
context->postTask(
- BLINK_FROM_HERE,
+ TaskType::FileReading, BLINK_FROM_HERE,
createSameThreadTask(&reportFailure, WTF::passed(callbacks->release()),
FileError::kAbortErr));
}
« no previous file with comments | « third_party/WebKit/Source/modules/filesystem/DOMFileSystem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698