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

Unified Diff: remoting/host/desktop_environment_options.cc

Issue 2615113005: [Chromoting] Use HostExperimentSessionPlugin in host (Closed)
Patch Set: Resolve review comments Created 3 years, 10 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/desktop_environment_options.h ('k') | remoting/host/fake_desktop_environment.h » ('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 ec1995e12d1753de296cd04983555975bf902c65..0e15351c01aedf5c6a72308f455933fa49497683 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;
@@ -68,4 +71,23 @@ void DesktopEnvironmentOptions::set_enable_user_interface(bool enabled) {
enable_user_interface_ = enabled;
}
+void DesktopEnvironmentOptions::ApplyHostSessionOptions(
+ const HostSessionOptions& options) {
+#if defined(OS_WIN)
+ base::Optional<std::string> directx_capturer =
+ options.Get("DirectX-Capturer");
+ if (directx_capturer) {
+ desktop_capture_options_.set_allow_directx_capturer(
+ *directx_capturer == "true");
+ }
+#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");
+ if (detect_updated_region) {
+ desktop_capture_options_.set_detect_updated_region(
+ *detect_updated_region == "true");
+ }
+}
+
} // namespace remoting
« no previous file with comments | « remoting/host/desktop_environment_options.h ('k') | remoting/host/fake_desktop_environment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698