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

Unified Diff: storage/browser/fileapi/plugin_private_file_system_backend.cc

Issue 1115663002: [storage/browser/fileapi] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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: storage/browser/fileapi/plugin_private_file_system_backend.cc
diff --git a/storage/browser/fileapi/plugin_private_file_system_backend.cc b/storage/browser/fileapi/plugin_private_file_system_backend.cc
index 72a0cd9d68e6dc267d95ca5bbc79e52c9c79cdb1..153062b2e7ce740c57333fb34398f936bec12394 100644
--- a/storage/browser/fileapi/plugin_private_file_system_backend.cc
+++ b/storage/browser/fileapi/plugin_private_file_system_backend.cc
@@ -9,6 +9,7 @@
#include "base/stl_util.h"
#include "base/synchronization/lock.h"
#include "base/task_runner_util.h"
+#include "base/thread_task_runner_handle.h"
#include "net/base/net_util.h"
#include "storage/browser/fileapi/async_file_util_adapter.h"
#include "storage/browser/fileapi/file_stream_reader.h"
@@ -122,7 +123,7 @@ void PluginPrivateFileSystemBackend::OpenPrivateFileSystem(
OpenFileSystemMode mode,
const StatusCallback& callback) {
if (!CanHandleType(type) || file_system_options_.is_incognito()) {
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE, base::Bind(callback, base::File::FILE_ERROR_SECURITY));
return;
}
@@ -149,7 +150,7 @@ void PluginPrivateFileSystemBackend::ResolveURL(
const OpenFileSystemCallback& callback) {
// We never allow opening a new plugin-private filesystem via usual
// ResolveURL.
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(callback, GURL(), std::string(),
base::File::FILE_ERROR_SECURITY));
« no previous file with comments | « storage/browser/fileapi/isolated_file_system_backend.cc ('k') | storage/browser/fileapi/recursive_operation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698