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

Unified Diff: chrome/browser/chromeos/drive/file_system/touch_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/touch_operation.cc
diff --git a/chrome/browser/chromeos/drive/file_system/touch_operation.cc b/chrome/browser/chromeos/drive/file_system/touch_operation.cc
index 87c634b4b239c85bca6e8e445a5560853b0b6ad5..3226f1607e8b4d2a59748cad66d256db40bafde3 100644
--- a/chrome/browser/chromeos/drive/file_system/touch_operation.cc
+++ b/chrome/browser/chromeos/drive/file_system/touch_operation.cc
@@ -44,13 +44,18 @@ void TouchOperation::TouchFile(const base::FilePath& file_path,
ResourceEntry* entry = new ResourceEntry;
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&internal::ResourceMetadata::GetResourceEntryByPath,
- base::Unretained(metadata_), file_path, entry),
+ base::Unretained(metadata_),
+ file_path,
+ entry),
base::Bind(&TouchOperation::TouchFileAfterGetResourceEntry,
weak_ptr_factory_.GetWeakPtr(),
- file_path, last_access_time, last_modified_time, callback,
+ file_path,
+ last_access_time,
+ last_modified_time,
+ callback,
base::Owned(entry)));
}
@@ -94,13 +99,15 @@ void TouchOperation::TouchFileAfterServerTimeStampUpdated(
}
base::PostTaskAndReplyWithResult(
- blocking_task_runner_,
+ blocking_task_runner_.get(),
FROM_HERE,
base::Bind(&internal::ResourceMetadata::RefreshEntry,
base::Unretained(metadata_),
ConvertToResourceEntry(*resource_entry)),
base::Bind(&TouchOperation::TouchFileAfterRefreshMetadata,
- weak_ptr_factory_.GetWeakPtr(), file_path, callback));
+ weak_ptr_factory_.GetWeakPtr(),
+ file_path,
+ callback));
}
void TouchOperation::TouchFileAfterRefreshMetadata(

Powered by Google App Engine
This is Rietveld 408576698