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

Unified Diff: remoting/host/client_session.cc

Issue 2615113005: [Chromoting] Use HostExperimentSessionPlugin in host (Closed)
Patch Set: Resolve review comments Created 3 years, 10 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/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('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 f8df3b7871a327afa927b673e0b7701852c5787b..2edb8f985eaded1064f6be99fe474ca49da21560 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -68,6 +68,7 @@ ClientSession::ClientSession(
lossless_video_color_(!base::CommandLine::ForCurrentProcess()->HasSwitch(
kDisableI444SwitchName)),
weak_factory_(this) {
+ connection_->session()->AddPlugin(&host_experiment_session_plugin_);
connection_->SetEventHandler(this);
// Create a manager for the configured extensions, if any.
@@ -241,10 +242,13 @@ void ClientSession::OnConnectionAuthenticated() {
// Notify EventHandler.
event_handler_->OnSessionAuthenticated(this);
+ DesktopEnvironmentOptions options = desktop_environment_options_;
+ options.ApplyHostSessionOptions(HostSessionOptions(
+ host_experiment_session_plugin_.configuration()));
// Create the desktop environment. Drop the connection if it could not be
// created for any reason (for instance the curtain could not initialize).
- desktop_environment_ = desktop_environment_factory_->Create(
- weak_factory_.GetWeakPtr(), desktop_environment_options_);
+ desktop_environment_ =
+ desktop_environment_factory_->Create(weak_factory_.GetWeakPtr(), options);
if (!desktop_environment_) {
DisconnectSession(protocol::HOST_CONFIGURATION_ERROR);
return;
« no previous file with comments | « remoting/host/client_session.h ('k') | remoting/host/client_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698