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

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

Issue 1120553002: [storage] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Nits 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/async_file_util_adapter.cc
diff --git a/storage/browser/fileapi/async_file_util_adapter.cc b/storage/browser/fileapi/async_file_util_adapter.cc
index 7d324c006f8abb74bf22373ca7464a7202bf56f1..ed8f84f9a72866836ff7dbc0744ad66d0566d6f0 100644
--- a/storage/browser/fileapi/async_file_util_adapter.cc
+++ b/storage/browser/fileapi/async_file_util_adapter.cc
@@ -86,7 +86,7 @@ class GetFileInfoHelper {
void ReadDirectoryHelper(FileSystemFileUtil* file_util,
FileSystemOperationContext* context,
const FileSystemURL& url,
- base::SingleThreadTaskRunner* origin_loop,
+ base::SingleThreadTaskRunner* origin_runner,
const AsyncFileUtil::ReadDirectoryCallback& callback) {
base::File::Info file_info;
base::FilePath platform_path;
@@ -98,7 +98,7 @@ void ReadDirectoryHelper(FileSystemFileUtil* file_util,
std::vector<DirectoryEntry> entries;
if (error != base::File::FILE_OK) {
- origin_loop->PostTask(
+ origin_runner->PostTask(
FROM_HERE, base::Bind(callback, error, entries, false /* has_more */));
return;
}
@@ -121,13 +121,13 @@ void ReadDirectoryHelper(FileSystemFileUtil* file_util,
entries.push_back(entry);
if (entries.size() == kResultChunkSize) {
- origin_loop->PostTask(
+ origin_runner->PostTask(
FROM_HERE, base::Bind(callback, base::File::FILE_OK, entries,
true /* has_more */));
entries.clear();
}
}
- origin_loop->PostTask(
+ origin_runner->PostTask(
FROM_HERE, base::Bind(callback, base::File::FILE_OK, entries,
false /* has_more */));
}
« no previous file with comments | « storage/browser/database/database_tracker.cc ('k') | storage/browser/fileapi/file_system_dir_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698