diff options
author | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-15 04:02:25 +0000 |
---|---|---|
committer | alexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-15 04:02:25 +0000 |
commit | 04eca61beb127d2ce7f6f5416361fc1c2d33921d (patch) | |
tree | a2b1b9b81084b2decf1faa3937576b1cb86a4c3c | |
parent | 149a4e78a7683a9d7d68dfb0a12b65e84a91011e (diff) | |
download | chromium_src-04eca61beb127d2ce7f6f5416361fc1c2d33921d.zip chromium_src-04eca61beb127d2ce7f6f5416361fc1c2d33921d.tar.gz chromium_src-04eca61beb127d2ce7f6f5416361fc1c2d33921d.tar.bz2 |
Do not show the in-session UI in a Me2Me session on Linux.
BUG=239945
Review URL: https://chromiumcodereview.appspot.com/14671007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200152 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | remoting/host/me2me_desktop_environment.cc | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/remoting/host/me2me_desktop_environment.cc b/remoting/host/me2me_desktop_environment.cc index 970e21e..9dc6d2f 100644 --- a/remoting/host/me2me_desktop_environment.cc +++ b/remoting/host/me2me_desktop_environment.cc @@ -67,21 +67,18 @@ bool Me2MeDesktopEnvironment::InitializeSecurity( curtain_ = CurtainMode::Create(caller_task_runner(), ui_task_runner(), client_session_control); - return curtain_->Activate(); + bool active = curtain_->Activate(); + if (!active) + LOG(ERROR) << "Failed to activate the curtain mode."; + return active; } // Otherwise, if the session is shared with the local user start monitoring // the local input and create the in-session UI. - // Create the local input monitor. - local_input_monitor_ = LocalInputMonitor::Create(caller_task_runner(), - input_task_runner(), - ui_task_runner(), - client_session_control); - - // The host UI should be created on the UI thread. - bool want_user_interface = true; -#if defined(OS_MACOSX) +#if defined(OS_LINUX) + bool want_user_interface = false; +#elif 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 // capturer from working (http://crbug.com/140984). @@ -89,11 +86,19 @@ bool Me2MeDesktopEnvironment::InitializeSecurity( // TODO(lambroslambrou): Use a better technique of detecting whether we're // running in the LoginWindow context, and refactor this into a separate // function to be used here and in CurtainMode::ActivateCurtain(). - want_user_interface = getuid() != 0; -#endif // defined(OS_MACOSX) + bool want_user_interface = getuid() != 0; +#elif defined(OS_WIN) + bool want_user_interface = true; +#endif // defined(OS_WIN) // Create the disconnect window. if (want_user_interface) { + // Create the local input monitor. + local_input_monitor_ = LocalInputMonitor::Create(caller_task_runner(), + input_task_runner(), + ui_task_runner(), + client_session_control); + disconnect_window_ = HostWindow::CreateDisconnectWindow(ui_strings); disconnect_window_.reset(new HostWindowProxy( caller_task_runner(), |