summaryrefslogtreecommitdiffstats
path: root/remoting/protocol/connection_to_host.cc
diff options
context:
space:
mode:
authorkxing@chromium.org <kxing@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 22:23:06 +0000
committerkxing@chromium.org <kxing@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-15 22:23:06 +0000
commit80d364ec445be64ce949f7c033cf510fd16ea36c (patch)
tree7fbc1606a4e427590f54f945a15526b461290f78 /remoting/protocol/connection_to_host.cc
parent8f7940244f8402881e94c258551f836262827a12 (diff)
downloadchromium_src-80d364ec445be64ce949f7c033cf510fd16ea36c.zip
chromium_src-80d364ec445be64ce949f7c033cf510fd16ea36c.tar.gz
chromium_src-80d364ec445be64ce949f7c033cf510fd16ea36c.tar.bz2
Cleaned up the reader and writer create methods to return scoped_ptr.
Review URL: https://chromiumcodereview.appspot.com/10556020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/protocol/connection_to_host.cc')
-rw-r--r--remoting/protocol/connection_to_host.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/remoting/protocol/connection_to_host.cc b/remoting/protocol/connection_to_host.cc
index 93c722a..296439b 100644
--- a/remoting/protocol/connection_to_host.cc
+++ b/remoting/protocol/connection_to_host.cc
@@ -158,7 +158,7 @@ void ConnectionToHost::OnSessionStateChange(
break;
case Session::AUTHENTICATED:
- video_reader_.reset(VideoReader::Create(session_->config()));
+ video_reader_ = VideoReader::Create(session_->config());
video_reader_->Init(session_.get(), video_stub_, base::Bind(
&ConnectionToHost::OnChannelInitialized, base::Unretained(this)));