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

Unified Diff: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc

Issue 98063002: Pass blocking pool runner to CreateTemporaryFile in SyncFS v2 drive_backend (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
index 5171e0a07c15247b3e1cd1da5e258c30344262ea..c8355bde960419bff2b366a5b2074673828f49c8 100644
--- a/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
+++ b/chrome/browser/sync_file_system/drive_backend/drive_backend_util.cc
@@ -124,7 +124,8 @@ scoped_ptr<FileMetadata> CreateDeletedFileMetadata(
return file.Pass();
}
-webkit_blob::ScopedFile CreateTemporaryFile() {
+webkit_blob::ScopedFile CreateTemporaryFile(
+ base::TaskRunner* file_task_runner) {
base::FilePath temp_file_path;
if (!file_util::CreateTemporaryFile(&temp_file_path))
return webkit_blob::ScopedFile();
@@ -132,7 +133,7 @@ webkit_blob::ScopedFile CreateTemporaryFile() {
return webkit_blob::ScopedFile(
temp_file_path,
webkit_blob::ScopedFile::DELETE_ON_SCOPE_OUT,
- base::MessageLoopProxy::current().get());
+ file_task_runner);
}
std::string FileKindToString(FileKind file_kind) {

Powered by Google App Engine
This is Rietveld 408576698