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

Unified Diff: media/audio/sounds/audio_stream_handler.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/audio/audio_output_device.cc ('k') | media/base/audio_shifter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sounds/audio_stream_handler.cc
diff --git a/media/audio/sounds/audio_stream_handler.cc b/media/audio/sounds/audio_stream_handler.cc
index 373a3ed3a5341d3574e8a4909d5860c8af980c6d..62235c9c778a3b676c2a5ac4fc66d56521c4c31b 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -5,8 +5,8 @@
#include "media/audio/sounds/audio_stream_handler.h"
#include <stdint.h>
-
#include <string>
+#include <utility>
#include "base/cancelable_callback.h"
#include "base/logging.h"
@@ -45,7 +45,7 @@ class AudioStreamHandler::AudioStreamContainer
stream_(NULL),
cursor_(0),
delayed_stop_posted_(false),
- wav_audio_(wav_audio.Pass()) {
+ wav_audio_(std::move(wav_audio)) {
DCHECK(wav_audio_);
}
@@ -188,7 +188,7 @@ AudioStreamHandler::AudioStreamHandler(const base::StringPiece& wav_data) {
// Store the duration of the WAV data then pass the handler to |stream_|.
duration_ = wav_audio->GetDuration();
- stream_.reset(new AudioStreamContainer(wav_audio.Pass()));
+ stream_.reset(new AudioStreamContainer(std::move(wav_audio)));
}
AudioStreamHandler::~AudioStreamHandler() {
« no previous file with comments | « media/audio/audio_output_device.cc ('k') | media/base/audio_shifter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698