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

Unified Diff: net/disk_cache/simple/simple_entry_impl.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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 | « net/disk_cache/simple/simple_backend_impl.cc ('k') | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_entry_impl.cc
diff --git a/net/disk_cache/simple/simple_entry_impl.cc b/net/disk_cache/simple/simple_entry_impl.cc
index f0ce25d367945500f0b7026f712d52ca659da110..efdd65a589a02b407ea43ad4ac1974ecffdc7f34 100644
--- a/net/disk_cache/simple/simple_entry_impl.cc
+++ b/net/disk_cache/simple/simple_entry_impl.cc
@@ -7,6 +7,7 @@
#include <algorithm>
#include <cstring>
#include <limits>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -1231,7 +1232,7 @@ void SimpleEntryImpl::ReadOperationComplete(
CreateNetLogReadWriteCompleteCallback(*result));
}
- EntryOperationComplete(completion_callback, *entry_stat, result.Pass());
+ EntryOperationComplete(completion_callback, *entry_stat, std::move(result));
}
void SimpleEntryImpl::WriteOperationComplete(
@@ -1252,7 +1253,7 @@ void SimpleEntryImpl::WriteOperationComplete(
crc32s_end_offset_[stream_index] = 0;
}
- EntryOperationComplete(completion_callback, *entry_stat, result.Pass());
+ EntryOperationComplete(completion_callback, *entry_stat, std::move(result));
}
void SimpleEntryImpl::ReadSparseOperationComplete(
@@ -1265,7 +1266,7 @@ void SimpleEntryImpl::ReadSparseOperationComplete(
SimpleEntryStat entry_stat(*last_used, last_modified_, data_size_,
sparse_data_size_);
- EntryOperationComplete(completion_callback, entry_stat, result.Pass());
+ EntryOperationComplete(completion_callback, entry_stat, std::move(result));
}
void SimpleEntryImpl::WriteSparseOperationComplete(
@@ -1276,7 +1277,7 @@ void SimpleEntryImpl::WriteSparseOperationComplete(
DCHECK(synchronous_entry_);
DCHECK(result);
- EntryOperationComplete(completion_callback, *entry_stat, result.Pass());
+ EntryOperationComplete(completion_callback, *entry_stat, std::move(result));
}
void SimpleEntryImpl::GetAvailableRangeOperationComplete(
@@ -1288,7 +1289,7 @@ void SimpleEntryImpl::GetAvailableRangeOperationComplete(
SimpleEntryStat entry_stat(last_used_, last_modified_, data_size_,
sparse_data_size_);
- EntryOperationComplete(completion_callback, entry_stat, result.Pass());
+ EntryOperationComplete(completion_callback, entry_stat, std::move(result));
}
void SimpleEntryImpl::DoomOperationComplete(
@@ -1336,7 +1337,7 @@ void SimpleEntryImpl::ChecksumOperationComplete(
SimpleEntryStat entry_stat(last_used_, last_modified_, data_size_,
sparse_data_size_);
- EntryOperationComplete(completion_callback, entry_stat, result.Pass());
+ EntryOperationComplete(completion_callback, entry_stat, std::move(result));
}
void SimpleEntryImpl::CloseOperationComplete() {
« no previous file with comments | « net/disk_cache/simple/simple_backend_impl.cc ('k') | net/disk_cache/simple/simple_index.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698