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

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

Issue 16998003: Update CrOS to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 6 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: 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 8978e0e96de32869553ad46e304b015381ce0eb8..3a4c561d9b9b75f70b439f5e52bc65e6fc3ba70b 100644
--- a/chrome/browser/chromeos/drive/file_system/copy_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/copy_operation.cc
@@ -133,11 +133,10 @@ void CopyOperation::OnGetFileCompleteForTransferFile(
// copied to the actual destination path on the local file system using
// CopyLocalFileOnBlockingPool.
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
- base::Bind(&CopyLocalFileOnBlockingPool,
- local_file_path,
- local_dest_file_path),
+ base::Bind(
+ &CopyLocalFileOnBlockingPool, local_file_path, local_dest_file_path),
callback);
}
@@ -208,7 +207,7 @@ void CopyOperation::ScheduleTransferRegularFileAfterGetResourceEntry(
ResourceEntry* entry_ptr = entry.get();
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&StoreAndMarkDirty,
cache_,
@@ -384,7 +383,7 @@ void CopyOperation::OnCopyResourceCompleted(
// The copy on the server side is completed successfully. Update the local
// metadata.
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&internal::ResourceMetadata::AddEntry,
base::Unretained(metadata_),
@@ -434,7 +433,7 @@ void CopyOperation::TransferFileFromLocalToRemoteAfterGetResourceEntry(
if (util::HasGDocFileExtension(local_src_file_path)) {
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&util::ReadResourceIdFromGDocFile, local_src_file_path),
base::Bind(&CopyOperation::TransferFileForResourceId,
« no previous file with comments | « chrome/browser/chromeos/drive/file_system.cc ('k') | chrome/browser/chromeos/drive/file_system/create_directory_operation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698