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

Unified Diff: remoting/host/it2me_desktop_environment.cc

Issue 1923573006: Implement a dummy host to do capturing and analysis only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolve review commnets Created 4 years, 7 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/it2me_desktop_environment.h ('k') | remoting/protocol/fake_connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7ffc79deda0887358cd0d6d06cddd4c508f77630 100644
--- a/remoting/host/it2me_desktop_environment.cc
+++ b/remoting/host/it2me_desktop_environment.cc
@@ -32,7 +32,8 @@ It2MeDesktopEnvironment::It2MeDesktopEnvironment(
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner,
base::WeakPtr<ClientSessionControl> client_session_control,
- bool supports_touch_events)
+ bool supports_touch_events,
+ bool enable_user_interface)
: BasicDesktopEnvironment(caller_task_runner,
video_capture_task_runner,
input_task_runner,
@@ -47,7 +48,6 @@ It2MeDesktopEnvironment::It2MeDesktopEnvironment(
client_session_control);
// The host UI should be created on the UI thread.
- bool want_user_interface = true;
#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
@@ -56,11 +56,11 @@ It2MeDesktopEnvironment::It2MeDesktopEnvironment(
// 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;
+ enable_user_interface = getuid() != 0;
#endif // defined(OS_MACOSX)
// Create the continue and disconnect windows.
- if (want_user_interface) {
+ if (enable_user_interface) {
continue_window_ = HostWindow::CreateContinueWindow();
continue_window_.reset(new HostWindowProxy(
caller_task_runner, ui_task_runner, std::move(continue_window_)));
@@ -91,7 +91,8 @@ std::unique_ptr<DesktopEnvironment> It2MeDesktopEnvironmentFactory::Create(
return base::WrapUnique(new It2MeDesktopEnvironment(
caller_task_runner(), video_capture_task_runner(), input_task_runner(),
- ui_task_runner(), client_session_control, supports_touch_events()));
+ ui_task_runner(), client_session_control, supports_touch_events(),
+ enable_user_interface_));
}
} // namespace remoting
« no previous file with comments | « remoting/host/it2me_desktop_environment.h ('k') | remoting/protocol/fake_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698