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

Unified Diff: remoting/protocol/connection_to_host.cc

Issue 10556020: Cleaned up the reader and writer create methods to return scoped_ptr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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
Index: remoting/protocol/connection_to_host.cc
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index 93c722a942747d2fe305a8f296a35e6ae8213515..bd859ec7ca8cffe8b1e7e91edabcb38d518db488 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -158,7 +158,8 @@ void ConnectionToHost::OnSessionStateChange(
break;
case Session::AUTHENTICATED:
- video_reader_.reset(VideoReader::Create(session_->config()));
+ video_reader_.reset();
Sergey Ulanov 2012/06/15 20:41:43 same here.
kxing 2012/06/15 20:48:17 Done.
+ video_reader_ = VideoReader::Create(session_->config());
video_reader_->Init(session_.get(), video_stub_, base::Bind(
&ConnectionToHost::OnChannelInitialized, base::Unretained(this)));

Powered by Google App Engine
This is Rietveld 408576698