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

Unified Diff: chrome/browser/chromeos/drive/file_system/create_file_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/create_file_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/create_file_operation.cc b/chrome/browser/chromeos/drive/file_system/create_file_operation.cc
index b31570c9e7a86a8d2e3d39f52853b8e8b60ed116..2d25180d017a983e1542a8c3856c932e02c66f77 100644
--- a/chrome/browser/chromeos/drive/file_system/create_file_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/create_file_operation.cc
@@ -145,15 +145,20 @@ void CreateFileOperation::CreateFile(const base::FilePath& file_path,
std::string* parent_resource_id = new std::string;
std::string* mime_type = new std::string;
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&CheckPreConditionForCreateFile,
- metadata_, file_path, is_exclusive,
- parent_resource_id, mime_type),
+ metadata_,
+ file_path,
+ is_exclusive,
+ parent_resource_id,
+ mime_type),
base::Bind(&CreateFileOperation::CreateFileAfterCheckPreCondition,
weak_ptr_factory_.GetWeakPtr(),
- file_path, callback,
- base::Owned(parent_resource_id), base::Owned(mime_type)));
+ file_path,
+ callback,
+ base::Owned(parent_resource_id),
+ base::Owned(mime_type)));
}
void CreateFileOperation::CreateFileAfterCheckPreCondition(
@@ -201,13 +206,17 @@ void CreateFileOperation::CreateFileAfterUpload(
base::FilePath* file_path = new base::FilePath;
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&UpdateLocalStateForCreateFile,
- metadata_, cache_, base::Passed(&resource_entry), file_path),
+ metadata_,
+ cache_,
+ base::Passed(&resource_entry),
+ file_path),
base::Bind(&CreateFileOperation::CreateFileAfterUpdateLocalState,
weak_ptr_factory_.GetWeakPtr(),
- callback, base::Owned(file_path)));
+ callback,
+ base::Owned(file_path)));
}
void CreateFileOperation::CreateFileAfterUpdateLocalState(

Powered by Google App Engine
This is Rietveld 408576698