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

Unified Diff: remoting/host/desktop_environment_options.cc

Issue 2936603003: [Chromoting] Implement host safe-mode
Patch Set: Created 3 years, 6 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/BUILD.gn ('k') | remoting/host/host_attributes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_environment_options.cc
diff --git a/remoting/host/desktop_environment_options.cc b/remoting/host/desktop_environment_options.cc
index 5a50b929847a3dd56e72b3bbff96ebd2c7bd4965..0b6f33adb36a378ca26d815274bb15efaad0964b 100644
--- a/remoting/host/desktop_environment_options.cc
+++ b/remoting/host/desktop_environment_options.cc
@@ -8,6 +8,7 @@
#include <utility>
#include "base/optional.h"
+#include "remoting/host/safe_mode.h"
namespace remoting {
@@ -40,7 +41,11 @@ DesktopEnvironmentOptions::operator=(
void DesktopEnvironmentOptions::Initialize() {
desktop_capture_options_.set_detect_updated_region(true);
#if defined (OS_WIN)
- desktop_capture_options_.set_allow_directx_capturer(true);
+ if (ExecuteHostInSafeMode()) {
+ desktop_capture_options_.set_allow_directx_capturer(false);
+ } else {
+ desktop_capture_options_.set_allow_directx_capturer(true);
+ }
#endif
}
« no previous file with comments | « remoting/host/BUILD.gn ('k') | remoting/host/host_attributes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698