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

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

Issue 1873683002: Convert //chrome/browser/sync_file_system from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/sync_file_system/drive_backend/folder_creator.cc
diff --git a/chrome/browser/sync_file_system/drive_backend/folder_creator.cc b/chrome/browser/sync_file_system/drive_backend/folder_creator.cc
index cfa9f8d42eb16ded0463fea80a111882b181062b..8a7ec887f4654586aa3d086953616e3b2a2b3ebf 100644
--- a/chrome/browser/sync_file_system/drive_backend/folder_creator.cc
+++ b/chrome/browser/sync_file_system/drive_backend/folder_creator.cc
@@ -47,7 +47,7 @@ void FolderCreator::Run(const FileIDCallback& callback) {
void FolderCreator::DidCreateFolder(
const FileIDCallback& callback,
google_apis::DriveApiErrorCode error,
- scoped_ptr<google_apis::FileResource> entry) {
+ std::unique_ptr<google_apis::FileResource> entry) {
SyncStatusCode status = DriveApiErrorCodeToSyncStatusCode(error);
if (status != SYNC_STATUS_OK) {
callback.Run(std::string(), status);
@@ -65,7 +65,7 @@ void FolderCreator::DidListFolders(
const FileIDCallback& callback,
ScopedVector<google_apis::FileResource> candidates,
google_apis::DriveApiErrorCode error,
- scoped_ptr<google_apis::FileList> file_list) {
+ std::unique_ptr<google_apis::FileList> file_list) {
SyncStatusCode status = DriveApiErrorCodeToSyncStatusCode(error);
if (status != SYNC_STATUS_OK) {
callback.Run(std::string(), status);

Powered by Google App Engine
This is Rietveld 408576698