Index: remoting/host/remoting_me2me_host.cc |
diff --git a/remoting/host/remoting_me2me_host.cc b/remoting/host/remoting_me2me_host.cc |
index 404c248637c4d603ec59e787f1ead1ceb4aec1da..a3aac660be4d0b0f118fc1fb4788bd46ee5277e5 100644 |
--- a/remoting/host/remoting_me2me_host.cc |
+++ b/remoting/host/remoting_me2me_host.cc |
@@ -36,7 +36,6 @@ |
#include "remoting/host/chromoting_host_context.h" |
#include "remoting/host/composite_host_config.h" |
#include "remoting/host/constants.h" |
-#include "remoting/host/desktop_environment.h" |
#include "remoting/host/event_executor.h" |
#include "remoting/host/heartbeat_sender.h" |
#include "remoting/host/host_config.h" |
@@ -49,6 +48,7 @@ |
#include "remoting/host/signaling_connector.h" |
#include "remoting/host/usage_stats_consent.h" |
#include "remoting/host/video_frame_capturer.h" |
+#include "remoting/host/win/session_desktop_environment_factory.h" |
#include "remoting/jingle_glue/xmpp_signal_strategy.h" |
#include "remoting/protocol/me2me_host_authenticator_factory.h" |
@@ -120,6 +120,7 @@ class HostProcess |
allow_nat_traversal_(true), |
restarting_(false), |
shutting_down_(false), |
+ desktop_environment_factory_(new SessionDesktopEnvironmentFactory()), |
Wez
2012/08/31 18:18:02
Isn't SessionDesktopEnvironmentFactory Windows-onl
alexeypa (please no reviews)
2012/08/31 23:13:30
Yes, indeed.
|
exit_code_(kSuccessExitCode) |
#if defined(OS_MACOSX) |
, curtain_(base::Bind(&HostProcess::OnDisconnectRequested, |
@@ -505,11 +506,6 @@ class HostProcess |
} |
} |
- if (!desktop_environment_.get()) { |
- desktop_environment_ = |
- DesktopEnvironment::CreateForService(context_.get()); |
- } |
- |
NetworkSettings network_settings( |
allow_nat_traversal_ ? |
NetworkSettings::NAT_TRAVERSAL_ENABLED : |
@@ -520,7 +516,8 @@ class HostProcess |
} |
host_ = new ChromotingHost( |
- context_.get(), signal_strategy_.get(), desktop_environment_.get(), |
+ context_.get(), signal_strategy_.get(), |
+ desktop_environment_factory_.get(), |
CreateHostSessionManager(network_settings, |
context_->url_request_context_getter())); |
@@ -606,7 +603,6 @@ class HostProcess |
// Destroy networking objects while we are on the network thread. |
host_ = NULL; |
- desktop_environment_.reset(); |
host_event_logger_.reset(); |
log_to_server_.reset(); |
heartbeat_sender_.reset(); |
@@ -645,9 +641,9 @@ class HostProcess |
bool restarting_; |
bool shutting_down_; |
+ scoped_ptr<DesktopEnvironmentFactory> desktop_environment_factory_; |
scoped_ptr<XmppSignalStrategy> signal_strategy_; |
scoped_ptr<SignalingConnector> signaling_connector_; |
- scoped_ptr<DesktopEnvironment> desktop_environment_; |
scoped_ptr<HeartbeatSender> heartbeat_sender_; |
scoped_ptr<LogToServer> log_to_server_; |
scoped_ptr<HostEventLogger> host_event_logger_; |