Index: remoting/host/it2me_desktop_environment.cc |
diff --git a/remoting/host/it2me_desktop_environment.cc b/remoting/host/it2me_desktop_environment.cc |
index ffe768f02cd1b604ef06ccc067defa3fe1fdfe9e..3aba6b474a19293539b971c8bbbcbf33fe23b545 100644 |
--- a/remoting/host/it2me_desktop_environment.cc |
+++ b/remoting/host/it2me_desktop_environment.cc |
@@ -6,6 +6,7 @@ |
#include <utility> |
+#include "base/command_line.h" |
#include "base/logging.h" |
#include "base/memory/ptr_util.h" |
#include "base/single_thread_task_runner.h" |
@@ -47,7 +48,8 @@ It2MeDesktopEnvironment::It2MeDesktopEnvironment( |
client_session_control); |
// The host UI should be created on the UI thread. |
- bool want_user_interface = true; |
+ bool want_user_interface = |
+ !base::CommandLine::ForCurrentProcess()->HasSwitch("disable-it2me-ui"); |
joedow
2016/04/28 22:53:54
Commented on elsewhere, but it seems odd to use a
Hzj_jie
2016/05/03 19:07:05
Done.
|
#if defined(OS_MACOSX) |
// Don't try to display any UI on top of the system's login screen as this |
// is rejected by the Window Server on OS X 10.7.4, and prevents the |