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

Unified Diff: remoting/host/fake_desktop_environment.cc

Issue 2615113005: [Chromoting] Use HostExperimentSessionPlugin in host (Closed)
Patch Set: Created 3 years, 11 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
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..782a16ffc44c53b386e97d8c1bb602f68f19dc3c 100644
--- a/remoting/host/fake_desktop_environment.cc
+++ b/remoting/host/fake_desktop_environment.cc
@@ -55,8 +55,10 @@ 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 +105,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 +120,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);

Powered by Google App Engine
This is Rietveld 408576698