| Index: remoting/host/desktop_environment_options.cc
|
| diff --git a/remoting/host/desktop_environment_options.cc b/remoting/host/desktop_environment_options.cc
|
| index 0e15351c01aedf5c6a72308f455933fa49497683..0b0ff3c6f5f5032d134ccd1d38be80ad7b4c1c2b 100644
|
| --- a/remoting/host/desktop_environment_options.cc
|
| +++ b/remoting/host/desktop_environment_options.cc
|
| @@ -74,19 +74,17 @@ void DesktopEnvironmentOptions::set_enable_user_interface(bool enabled) {
|
| void DesktopEnvironmentOptions::ApplyHostSessionOptions(
|
| const HostSessionOptions& options) {
|
| #if defined(OS_WIN)
|
| - base::Optional<std::string> directx_capturer =
|
| - options.Get("DirectX-Capturer");
|
| + base::Optional<bool> directx_capturer =
|
| + options.GetBool("DirectX-Capturer");
|
| if (directx_capturer) {
|
| - desktop_capture_options_.set_allow_directx_capturer(
|
| - *directx_capturer == "true");
|
| + desktop_capture_options_.set_allow_directx_capturer(*directx_capturer);
|
| }
|
| #endif
|
| // This field is for test purpose. Usually it should not be set to false.
|
| - base::Optional<std::string> detect_updated_region =
|
| - options.Get("Detect-Updated-Region");
|
| + base::Optional<bool> detect_updated_region =
|
| + options.GetBool("Detect-Updated-Region");
|
| if (detect_updated_region) {
|
| - desktop_capture_options_.set_detect_updated_region(
|
| - *detect_updated_region == "true");
|
| + desktop_capture_options_.set_detect_updated_region(*detect_updated_region);
|
| }
|
| }
|
|
|
|
|