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

Unified Diff: media/blink/buffered_data_source.cc

Issue 1544313002: Convert Pass()→std::move() in //media (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 | « media/blink/active_loader.cc ('k') | media/blink/buffered_resource_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/buffered_data_source.cc
diff --git a/media/blink/buffered_data_source.cc b/media/blink/buffered_data_source.cc
index 4dd9fb5158cc3b84d2008bbea9e05702703c5fd2..c6e11a606b26f188af2fcc0763fe812b69b2ee5a 100644
--- a/media/blink/buffered_data_source.cc
+++ b/media/blink/buffered_data_source.cc
@@ -4,6 +4,8 @@
#include "media/blink/buffered_data_source.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/callback_helpers.h"
#include "base/location.h"
@@ -315,7 +317,7 @@ void BufferedDataSource::StopInternal_Locked() {
init_cb_.Reset();
if (read_op_)
- ReadOperation::Run(read_op_.Pass(), kReadError);
+ ReadOperation::Run(std::move(read_op_), kReadError);
}
void BufferedDataSource::StopLoader() {
@@ -444,7 +446,7 @@ void BufferedDataSource::PartialReadStartCallback(
base::AutoLock auto_lock(lock_);
if (stop_signal_received_)
return;
- ReadOperation::Run(read_op_.Pass(), kReadError);
+ ReadOperation::Run(std::move(read_op_), kReadError);
}
bool BufferedDataSource::CheckPartialResponseURL(
@@ -510,7 +512,7 @@ void BufferedDataSource::ReadCallback(
return;
}
- ReadOperation::Run(read_op_.Pass(), kReadError);
+ ReadOperation::Run(std::move(read_op_), kReadError);
return;
}
@@ -529,7 +531,7 @@ void BufferedDataSource::ReadCallback(
total_bytes_);
}
}
- ReadOperation::Run(read_op_.Pass(), bytes_read);
+ ReadOperation::Run(std::move(read_op_), bytes_read);
}
void BufferedDataSource::LoadingStateChangedCallback(
« no previous file with comments | « media/blink/active_loader.cc ('k') | media/blink/buffered_resource_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698