| Index: remoting/host/desktop_environment_options.cc
|
| diff --git a/remoting/host/desktop_environment_options.cc b/remoting/host/desktop_environment_options.cc
|
| index 716142c760edfa49fd39d77088676f1b99b0392d..e0268082539c090931f7ab4126c47da68c032a9a 100644
|
| --- a/remoting/host/desktop_environment_options.cc
|
| +++ b/remoting/host/desktop_environment_options.cc
|
| @@ -4,8 +4,11 @@
|
|
|
| #include "remoting/host/desktop_environment_options.h"
|
|
|
| +#include <string>
|
| #include <utility>
|
|
|
| +#include "base/optional.h"
|
| +
|
| namespace remoting {
|
|
|
| using DesktopCaptureOptions = webrtc::DesktopCaptureOptions;
|
| @@ -64,4 +67,12 @@ void DesktopEnvironmentOptions::set_enable_user_interface(bool enabled) {
|
| enable_user_interface_ = enabled;
|
| }
|
|
|
| +void DesktopEnvironmentOptions::Import(const HostSessionOptions& options) {
|
| +#if defined(OS_WIN)
|
| + if (options.Get("Allow-DirectX-Capturer")) {
|
| + desktop_capture_options_.set_allow_directx_capturer(true);
|
| + }
|
| +#endif
|
| +}
|
| +
|
| } // namespace remoting
|
|
|