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

Unified Diff: chrome/browser/chromeos/drive/file_system/copy_operation.cc

Issue 11363234: google_apis: Remove PostBlockingPoolSequencedTask () and friends (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove #include Created 8 years, 1 month 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/chromeos/drive/file_system/copy_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/copy_operation.cc b/chrome/browser/chromeos/drive/file_system/copy_operation.cc
index 61b91ef6ca1d6f215cab9ee23eccfed2963da897..d549f33f838a50581ce14b95c8bbcdbb4b57b285 100644
--- a/chrome/browser/chromeos/drive/file_system/copy_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/copy_operation.cc
@@ -13,7 +13,6 @@
#include "chrome/browser/chromeos/drive/drive_files.h"
#include "chrome/browser/google_apis/drive_service_interface.h"
#include "chrome/browser/google_apis/drive_upload_error.h"
-#include "chrome/browser/google_apis/gdata_util.h"
#include "content/public/browser/browser_thread.h"
#include "net/base/mime_util.h"
@@ -161,9 +160,9 @@ void CopyOperation::OnGetFileCompleteForTransferFile(
// GetFileByPath downloads the file from Drive to a local cache, which is then
// copied to the actual destination path on the local file system using
// CopyLocalFileOnBlockingPool.
- google_apis::util::PostBlockingPoolSequencedTaskAndReplyWithResult(
- FROM_HERE,
+ base::PostTaskAndReplyWithResult(
blocking_task_runner_,
+ FROM_HERE,
base::Bind(&CopyLocalFileOnBlockingPool,
local_file_path,
local_dest_file_path),
@@ -196,9 +195,9 @@ void CopyOperation::TransferRegularFile(
int64* file_size = new int64;
std::string* content_type = new std::string;
- google_apis::util::PostBlockingPoolSequencedTaskAndReplyWithResult(
- FROM_HERE,
+ base::PostTaskAndReplyWithResult(
blocking_task_runner_,
+ FROM_HERE,
base::Bind(&GetLocalFileInfoOnBlockingPool,
local_file_path,
file_size,
@@ -523,9 +522,8 @@ void CopyOperation::TransferFileFromLocalToRemoteAfterGetEntryInfo(
}
std::string* resource_id = new std::string;
- google_apis::util::PostBlockingPoolSequencedTaskAndReply(
+ blocking_task_runner_->PostTaskAndReply(
FROM_HERE,
- blocking_task_runner_,
base::Bind(&GetDocumentResourceIdOnBlockingPool,
local_src_file_path,
resource_id),

Powered by Google App Engine
This is Rietveld 408576698