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

Unified Diff: remoting/host/client_session.cc

Issue 468613002: Readability review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. 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
Index: remoting/host/client_session.cc
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 31c3bf145d35707d8486ff753c36fe523ed43830..78489b847e82ec24c9d7c9ef7ce26cfc61615844 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)

Powered by Google App Engine
This is Rietveld 408576698