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

Unified Diff: remoting/protocol/audio_writer.cc

Issue 841773005: Cleanup channel dispatchers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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_writer.h ('k') | remoting/protocol/channel_dispatcher_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/audio_writer.cc
diff --git a/remoting/protocol/audio_writer.cc b/remoting/protocol/audio_writer.cc
index a6c8f4b2dd62103aa021c6f0c2a1dbf6775a9c65..be60d2e6955f9a02ee10a7b86627093babbfea3f 100644
--- a/remoting/protocol/audio_writer.cc
+++ b/remoting/protocol/audio_writer.cc
@@ -22,15 +22,9 @@ AudioWriter::AudioWriter()
AudioWriter::~AudioWriter() {
}
-void AudioWriter::OnInitialized() {
- // TODO(sergeyu): Provide a non-null WriteFailedCallback for the writer.
- buffered_writer_.Init(
- channel(), BufferedSocketWriter::WriteFailedCallback());
-}
-
void AudioWriter::ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
const base::Closure& done) {
- buffered_writer_.Write(SerializeAndFrameMessage(*packet), done);
+ writer()->Write(SerializeAndFrameMessage(*packet), done);
}
// static
« no previous file with comments | « remoting/protocol/audio_writer.h ('k') | remoting/protocol/channel_dispatcher_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698