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

Unified Diff: storage/browser/fileapi/file_system_context.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
« no previous file with comments | « no previous file | storage/browser/fileapi/file_system_operation_runner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/fileapi/file_system_context.cc
diff --git a/storage/browser/fileapi/file_system_context.cc b/storage/browser/fileapi/file_system_context.cc
index defccc8f1d5f562a714aee89941a9735fa8e5563..5d28b00513e2ef3d2aecd930a9ad49afc02ac758 100644
--- a/storage/browser/fileapi/file_system_context.cc
+++ b/storage/browser/fileapi/file_system_context.cc
@@ -8,6 +8,7 @@
#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/task_runner_util.h"
+#include "base/thread_task_runner_handle.h"
#include "net/url_request/url_request.h"
#include "storage/browser/fileapi/copy_or_move_file_validator.h"
#include "storage/browser/fileapi/external_mount_points.h"
@@ -66,13 +67,13 @@ void DidGetMetadataForResolveURL(
}
void RelayResolveURLCallback(
- scoped_refptr<base::MessageLoopProxy> message_loop,
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner,
const FileSystemContext::ResolveURLCallback& callback,
base::File::Error result,
const FileSystemInfo& info,
const base::FilePath& file_path,
FileSystemContext::ResolvedEntryType type) {
- message_loop->PostTask(
+ task_runner->PostTask(
FROM_HERE, base::Bind(callback, result, info, file_path, type));
}
@@ -365,7 +366,7 @@ void FileSystemContext::ResolveURL(
if (!io_task_runner_->RunsTasksOnCurrentThread()) {
ResolveURLCallback relay_callback =
base::Bind(&RelayResolveURLCallback,
- base::MessageLoopProxy::current(), callback);
+ base::ThreadTaskRunnerHandle::Get(), callback);
io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&FileSystemContext::ResolveURL, this, url, relay_callback));
« no previous file with comments | « no previous file | storage/browser/fileapi/file_system_operation_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698