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

Unified Diff: content/browser/byte_stream.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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 | « content/browser/browser_main_loop.cc ('k') | content/browser/cache_storage/cache_storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/byte_stream.cc
diff --git a/content/browser/byte_stream.cc b/content/browser/byte_stream.cc
index b51cded7723b6104bd02d462472679f712d427cd..0a8939ed349900751ba4a9f6e82a4a272178a65d 100644
--- a/content/browser/byte_stream.cc
+++ b/content/browser/byte_stream.cc
@@ -384,8 +384,8 @@ void ByteStreamReaderImpl::TransferData(
// If our target is no longer alive, do nothing.
if (!object_lifetime_flag->is_alive) return;
- target->TransferDataInternal(
- transfer_buffer.Pass(), buffer_size, source_complete, status);
+ target->TransferDataInternal(std::move(transfer_buffer), buffer_size,
+ source_complete, status);
}
void ByteStreamReaderImpl::TransferDataInternal(
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/browser/cache_storage/cache_storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698