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

Side by Side Diff: media/audio/audio_input_controller.cc

Issue 1544313002: Convert Pass()→std::move() in //media (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | media/audio/audio_input_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/audio/audio_input_controller.h" 5 #include "media/audio/audio_input_controller.h"
6 6
7 #include <utility>
8
7 #include "base/bind.h" 9 #include "base/bind.h"
8 #include "base/metrics/histogram_macros.h" 10 #include "base/metrics/histogram_macros.h"
9 #include "base/single_thread_task_runner.h" 11 #include "base/single_thread_task_runner.h"
10 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/stringprintf.h" 13 #include "base/strings/stringprintf.h"
12 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
13 #include "base/threading/thread_restrictions.h" 15 #include "base/threading/thread_restrictions.h"
14 #include "base/time/time.h" 16 #include "base/time/time.h"
15 #include "media/audio/audio_input_writer.h" 17 #include "media/audio/audio_input_writer.h"
16 #include "media/base/user_input_monitor.h" 18 #include "media/base/user_input_monitor.h"
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 725
724 void AudioInputController::DoDisableDebugRecording() { 726 void AudioInputController::DoDisableDebugRecording() {
725 DCHECK(task_runner_->BelongsToCurrentThread()); 727 DCHECK(task_runner_->BelongsToCurrentThread());
726 input_writer_ = nullptr; 728 input_writer_ = nullptr;
727 } 729 }
728 730
729 void AudioInputController::WriteInputDataForDebugging( 731 void AudioInputController::WriteInputDataForDebugging(
730 scoped_ptr<AudioBus> data) { 732 scoped_ptr<AudioBus> data) {
731 DCHECK(task_runner_->BelongsToCurrentThread()); 733 DCHECK(task_runner_->BelongsToCurrentThread());
732 if (input_writer_) 734 if (input_writer_)
733 input_writer_->Write(data.Pass()); 735 input_writer_->Write(std::move(data));
734 } 736 }
735 737
736 } // namespace media 738 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/audio/audio_input_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698