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

Unified Diff: remoting/protocol/audio_reader.cc

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/audio_reader.h ('k') | remoting/protocol/audio_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_reader.cc
diff --git a/remoting/protocol/audio_reader.cc b/remoting/protocol/audio_reader.cc
index 272a1f18f7e274c91c46b87a5ee195f11e0566db..5fdf077da025a384336959dcc756850161c93396 100644
--- a/remoting/protocol/audio_reader.cc
+++ b/remoting/protocol/audio_reader.cc
@@ -22,8 +22,8 @@ AudioReader::AudioReader(AudioStub* audio_stub)
AudioReader::~AudioReader() {}
-void AudioReader::OnIncomingMessage(scoped_ptr<CompoundBuffer> message) {
- scoped_ptr<AudioPacket> audio_packet =
+void AudioReader::OnIncomingMessage(std::unique_ptr<CompoundBuffer> message) {
+ std::unique_ptr<AudioPacket> audio_packet =
ParseMessage<AudioPacket>(message.get());
if (audio_packet) {
audio_stub_->ProcessAudioPacket(std::move(audio_packet),
« no previous file with comments | « remoting/protocol/audio_reader.h ('k') | remoting/protocol/audio_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698