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

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: Created 4 years, 8 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
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

Powered by Google App Engine
This is Rietveld 408576698