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

Unified Diff: remoting/host/client_session.cc

Issue 468613002: Readability review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 4 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/host/cast_extension_session.cc ('k') | remoting/host/fake_host_extension.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index d741e1cdda881d42aeeab43bcd79a6d64fb81840..2af7f68053e1b2a5ce3f83eafeb53c0afc370ad7 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -456,11 +456,11 @@ void ClientSession::ResetVideoPipeline() {
// Create VideoEncoder and DesktopCapturer to match the session's video
// channel configuration.
scoped_ptr<webrtc::DesktopCapturer> video_capturer =
- extension_manager_->OnCreateVideoCapturer(
- desktop_environment_->CreateVideoCapturer());
+ desktop_environment_->CreateVideoCapturer();
+ extension_manager_->OnCreateVideoCapturer(&video_capturer);
scoped_ptr<VideoEncoder> video_encoder =
- extension_manager_->OnCreateVideoEncoder(
- CreateVideoEncoder(connection_->session()->config()));
+ CreateVideoEncoder(connection_->session()->config());
+ extension_manager_->OnCreateVideoEncoder(&video_encoder);
// Don't start the VideoScheduler if either capturer or encoder are missing.
if (!video_capturer || !video_encoder)
« no previous file with comments | « remoting/host/cast_extension_session.cc ('k') | remoting/host/fake_host_extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698