| 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
|
| }
|
|
|
|
|