Index: remoting/host/remoting_me2me_host.cc |
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
index 6dcad1bd8b18cb7069577d009b931c3596b9da23..1bde7422a199d4907b38f56d666aabac56b5a56b 100644 |
--- a/remoting/host/remoting_me2me_host.cc |
+++ b/remoting/host/remoting_me2me_host.cc |
@@ -40,6 +40,7 @@ |
#include "remoting/host/constants.h" |
#include "remoting/host/config_file_watcher.h" |
#include "remoting/host/desktop_environment_factory.h" |
+#include "remoting/host/desktop_resizer.h" |
#include "remoting/host/dns_blackhole_checker.h" |
#include "remoting/host/event_executor.h" |
#include "remoting/host/heartbeat_sender.h" |
@@ -126,6 +127,7 @@ class HostProcess |
#else // !defined(OS_WIN) |
desktop_environment_factory_(new DesktopEnvironmentFactory()), |
#endif // !defined(OS_WIN) |
+ desktop_resizer_(DesktopResizer::Create()), |
exit_code_(kSuccessExitCode) |
#if defined(OS_MACOSX) |
, curtain_(base::Bind(&HostProcess::OnDisconnectRequested, |
@@ -563,6 +565,9 @@ class HostProcess |
host_->SetMaximumSessionDuration(base::TimeDelta::FromHours(20)); |
#endif |
+ host_->AddStatusObserver(new DesktopResizer::HostStatusObserver( |
+ desktop_resizer_.get())); |
+ |
heartbeat_sender_.reset(new HeartbeatSender( |
this, host_id_, signal_strategy_.get(), &key_pair_)); |
@@ -687,6 +692,7 @@ class HostProcess |
bool shutting_down_; |
scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; |
+ scoped_ptr<DesktopResizer> desktop_resizer_; |
scoped_ptr<XmppSignalStrategy> signal_strategy_; |
scoped_ptr<SignalingConnector> signaling_connector_; |
scoped_ptr<HeartbeatSender> heartbeat_sender_; |