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

Unified Diff: storage/browser/blob/shareable_file_reference.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
« no previous file with comments | « storage/browser/blob/internal_blob_data.cc ('k') | storage/browser/blob/upload_blob_element_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/shareable_file_reference.cc
diff --git a/storage/browser/blob/shareable_file_reference.cc b/storage/browser/blob/shareable_file_reference.cc
index 187ea70f78c3eacba6ea63080fedc69121b08ec6..c8672f76d444fa2dc05a9049bb21df32fa45b718 100644
--- a/storage/browser/blob/shareable_file_reference.cc
+++ b/storage/browser/blob/shareable_file_reference.cc
@@ -5,6 +5,7 @@
#include "storage/browser/blob/shareable_file_reference.h"
#include <map>
+#include <utility>
#include "base/lazy_instance.h"
#include "base/macros.h"
@@ -97,7 +98,7 @@ scoped_refptr<ShareableFileReference> ShareableFileReference::GetOrCreate(
// Wasn't in the map, create a new reference and store the pointer.
scoped_refptr<ShareableFileReference> reference(
- new ShareableFileReference(scoped_file.Pass()));
+ new ShareableFileReference(std::move(scoped_file)));
result.first->second = reference.get();
return reference;
}
@@ -109,7 +110,7 @@ void ShareableFileReference::AddFinalReleaseCallback(
}
ShareableFileReference::ShareableFileReference(ScopedFile scoped_file)
- : scoped_file_(scoped_file.Pass()) {
+ : scoped_file_(std::move(scoped_file)) {
DCHECK(g_file_map.Get().Find(path())->second == NULL);
}
« no previous file with comments | « storage/browser/blob/internal_blob_data.cc ('k') | storage/browser/blob/upload_blob_element_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698