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

Unified Diff: storage/browser/blob/blob_data_item.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/blob_data_handle.cc ('k') | storage/browser/blob/blob_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_data_item.cc
diff --git a/storage/browser/blob/blob_data_item.cc b/storage/browser/blob/blob_data_item.cc
index 58ccabe267b4df163d2de566b380d0ec0469ec5b..70495ed7c5647094756fee2ee94888f3e7a69294 100644
--- a/storage/browser/blob/blob_data_item.cc
+++ b/storage/browser/blob/blob_data_item.cc
@@ -4,34 +4,33 @@
#include "storage/browser/blob/blob_data_item.h"
+#include <utility>
+
namespace storage {
BlobDataItem::DataHandle::~DataHandle() {
}
BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item)
- : item_(item.Pass()),
+ : item_(std::move(item)),
disk_cache_entry_(nullptr),
- disk_cache_stream_index_(-1) {
-}
+ disk_cache_stream_index_(-1) {}
BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
const scoped_refptr<DataHandle>& data_handle)
- : item_(item.Pass()),
+ : item_(std::move(item)),
data_handle_(data_handle),
disk_cache_entry_(nullptr),
- disk_cache_stream_index_(-1) {
-}
+ disk_cache_stream_index_(-1) {}
BlobDataItem::BlobDataItem(scoped_ptr<DataElement> item,
const scoped_refptr<DataHandle>& data_handle,
disk_cache::Entry* entry,
int disk_cache_stream_index)
- : item_(item.Pass()),
+ : item_(std::move(item)),
data_handle_(data_handle),
disk_cache_entry_(entry),
- disk_cache_stream_index_(disk_cache_stream_index) {
-}
+ disk_cache_stream_index_(disk_cache_stream_index) {}
BlobDataItem::~BlobDataItem() {}
« no previous file with comments | « storage/browser/blob/blob_data_handle.cc ('k') | storage/browser/blob/blob_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698