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

Unified Diff: media/filters/file_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/filters/ffmpeg_demuxer.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/file_data_source.cc
diff --git a/media/filters/file_data_source.cc b/media/filters/file_data_source.cc
index 8bf6b0d42f70272dc28bef7261de84e91c6fa1c9..55bfc5153e00235de96feb352eb9259b0c721604 100644
--- a/media/filters/file_data_source.cc
+++ b/media/filters/file_data_source.cc
@@ -5,6 +5,7 @@
#include "media/filters/file_data_source.h"
#include <algorithm>
+#include <utility>
#include "base/logging.h"
@@ -20,7 +21,7 @@ FileDataSource::FileDataSource(base::File file)
: force_read_errors_(false),
force_streaming_(false),
bytes_read_(0) {
- file_.Initialize(file.Pass());
+ file_.Initialize(std::move(file));
}
bool FileDataSource::Initialize(const base::FilePath& file_path) {
« no previous file with comments | « media/filters/ffmpeg_demuxer.cc ('k') | media/filters/gpu_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698