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

Unified Diff: remoting/host/fake_desktop_environment.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/fake_desktop_environment.h ('k') | remoting/host/host_session_options.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/fake_desktop_environment.cc
diff --git a/remoting/host/fake_desktop_environment.cc b/remoting/host/fake_desktop_environment.cc
index 9b97de19ff6c6b74b4be40685187a09ea35c4e71..6597f9695badec1376522b2e84c204c88ba95913 100644
--- a/remoting/host/fake_desktop_environment.cc
+++ b/remoting/host/fake_desktop_environment.cc
@@ -55,8 +55,9 @@ void FakeScreenControls::SetScreenResolution(
}
FakeDesktopEnvironment::FakeDesktopEnvironment(
- scoped_refptr<base::SingleThreadTaskRunner> capture_thread)
- : capture_thread_(std::move(capture_thread)) {}
+ scoped_refptr<base::SingleThreadTaskRunner> capture_thread,
+ const DesktopEnvironmentOptions& options)
+ : capture_thread_(std::move(capture_thread)), options_(options) {}
FakeDesktopEnvironment::~FakeDesktopEnvironment() = default;
@@ -103,6 +104,10 @@ uint32_t FakeDesktopEnvironment::GetDesktopSessionId() const {
return UINT32_MAX;
}
+const DesktopEnvironmentOptions& FakeDesktopEnvironment::options() const {
+ return options_;
+}
+
FakeDesktopEnvironmentFactory::FakeDesktopEnvironmentFactory(
scoped_refptr<base::SingleThreadTaskRunner> capture_thread)
: capture_thread_(std::move(capture_thread)) {}
@@ -114,7 +119,7 @@ std::unique_ptr<DesktopEnvironment> FakeDesktopEnvironmentFactory::Create(
base::WeakPtr<ClientSessionControl> client_session_control,
const DesktopEnvironmentOptions& options) {
std::unique_ptr<FakeDesktopEnvironment> result(
- new FakeDesktopEnvironment(capture_thread_));
+ new FakeDesktopEnvironment(capture_thread_, options));
result->set_frame_generator(frame_generator_);
last_desktop_environment_ = result->AsWeakPtr();
return std::move(result);
« no previous file with comments | « remoting/host/fake_desktop_environment.h ('k') | remoting/host/host_session_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698