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

Unified Diff: storage/browser/fileapi/async_file_util_adapter.cc

Issue 1546243002: Convert Pass()→std::move() in //storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: storage/browser/fileapi/async_file_util_adapter.cc
diff --git a/storage/browser/fileapi/async_file_util_adapter.cc b/storage/browser/fileapi/async_file_util_adapter.cc
index 6f7cafd3022f68ccfaf501ed9fc6992ab8ff3d53..361c73a7f09aaa32f699c5d4176dad82d45c1aad 100644
--- a/storage/browser/fileapi/async_file_util_adapter.cc
+++ b/storage/browser/fileapi/async_file_util_adapter.cc
@@ -6,7 +6,7 @@
#include <stddef.h>
#include <stdint.h>
-
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -76,7 +76,7 @@ class GetFileInfoHelper {
void ReplySnapshotFile(
const AsyncFileUtil::CreateSnapshotFileCallback& callback) {
callback.Run(error_, file_info_, platform_path_,
- ShareableFileReference::GetOrCreate(scoped_file_.Pass()));
+ ShareableFileReference::GetOrCreate(std::move(scoped_file_)));
}
private:
@@ -138,7 +138,7 @@ void RunCreateOrOpenCallback(
FileSystemOperationContext* context,
const AsyncFileUtil::CreateOrOpenCallback& callback,
base::File file) {
- callback.Run(file.Pass(), base::Closure());
+ callback.Run(std::move(file), base::Closure());
}
} // namespace
« no previous file with comments | « storage/browser/database/database_tracker.cc ('k') | storage/browser/fileapi/copy_or_move_operation_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698