Index: chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc |
diff --git a/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc b/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc |
index ab18a355b1236243668f60c3f13a4e8ba57cb6a9..c0c085eed9c7ac7c952a37ec91e3fdb667a0150a 100644 |
--- a/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc |
+++ b/chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/sync_file_system/drive_backend/fake_drive_service_helper.h" |
+#include <utility> |
+ |
#include "base/bind.h" |
#include "base/files/file_util.h" |
#include "base/message_loop/message_loop.h" |
@@ -35,7 +37,7 @@ void UploadResultCallback(DriveApiErrorCode* error_out, |
ASSERT_TRUE(error_out); |
ASSERT_TRUE(entry_out); |
*error_out = error; |
- *entry_out = entry.Pass(); |
+ *entry_out = std::move(entry); |
} |
void DownloadResultCallback(DriveApiErrorCode* error_out, |
@@ -239,7 +241,7 @@ DriveApiErrorCode FakeDriveServiceHelper::ListFilesInFolder( |
if (error != google_apis::HTTP_SUCCESS) |
return error; |
- return CompleteListing(list.Pass(), entries); |
+ return CompleteListing(std::move(list), entries); |
} |
DriveApiErrorCode FakeDriveServiceHelper::SearchByTitle( |
@@ -255,7 +257,7 @@ DriveApiErrorCode FakeDriveServiceHelper::SearchByTitle( |
if (error != google_apis::HTTP_SUCCESS) |
return error; |
- return CompleteListing(list.Pass(), entries); |
+ return CompleteListing(std::move(list), entries); |
} |
DriveApiErrorCode FakeDriveServiceHelper::GetFileResource( |