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

Unified Diff: services/ui/display/screen_manager_forwarding.cc

Issue 2833093002: WIP: simplified display management in ash (Closed)
Patch Set: x Created 3 years, 8 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 | « mash/package/mash_packaged_service.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/ui/display/screen_manager_forwarding.cc
diff --git a/services/ui/display/screen_manager_forwarding.cc b/services/ui/display/screen_manager_forwarding.cc
index c218d27924d123ae45176d0b7bfa1a418f39b40f..00b8677a7944ff66dca5dcac9e451cc508feab50 100644
--- a/services/ui/display/screen_manager_forwarding.cc
+++ b/services/ui/display/screen_manager_forwarding.cc
@@ -37,15 +37,19 @@ const DisplayMode* GetCorrespondingMode(const DisplaySnapshot& snapshot,
} // namespace
ScreenManagerForwarding::ScreenManagerForwarding()
- : screen_(base::MakeUnique<display::ScreenBase>()), binding_(this) {}
+ : screen_(base::MakeUnique<display::ScreenBase>()), binding_(this) {
+ Screen::SetScreenInstance(screen_.get());
+}
ScreenManagerForwarding::~ScreenManagerForwarding() {
if (native_display_delegate_)
native_display_delegate_->RemoveObserver(this);
+ Screen::SetScreenInstance(nullptr);
}
void ScreenManagerForwarding::AddInterfaces(
service_manager::BinderRegistry* registry) {
+ // registry->AddInterface<mojom::DisplayController>(this);
registry->AddInterface<mojom::NativeDisplayDelegate>(this);
}
« no previous file with comments | « mash/package/mash_packaged_service.cc ('k') | services/ui/ws/window_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698