Index: remoting/protocol/host_video_dispatcher.cc |
diff --git a/remoting/protocol/host_video_dispatcher.cc b/remoting/protocol/host_video_dispatcher.cc |
index 08ac857bbea74cc9e58fa42f2ef6dd1a7de5f9b9..b9a12c0294f28ac8e95d65ca52c8e6c000e8334f 100644 |
--- a/remoting/protocol/host_video_dispatcher.cc |
+++ b/remoting/protocol/host_video_dispatcher.cc |
@@ -20,14 +20,9 @@ HostVideoDispatcher::HostVideoDispatcher() |
HostVideoDispatcher::~HostVideoDispatcher() { |
} |
-void HostVideoDispatcher::OnInitialized() { |
- // TODO(sergeyu): Provide WriteFailedCallback for the buffered writer. |
- writer_.Init(channel(), BufferedSocketWriter::WriteFailedCallback()); |
-} |
- |
void HostVideoDispatcher::ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
const base::Closure& done) { |
- writer_.Write(SerializeAndFrameMessage(*packet), done); |
+ writer()->Write(SerializeAndFrameMessage(*packet), done); |
} |
} // namespace protocol |