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

Unified Diff: services/ui/service.cc

Issue 2503923003: Demonstrate external-window-mode in mus-demo (Closed)
Patch Set: Determine external window mode in mus-ws based on if a WM is connected Created 4 years, 1 month 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: services/ui/service.cc
diff --git a/services/ui/service.cc b/services/ui/service.cc
index 440df5eb22db31d08f120db203e8eabf86689027..18672174832f8bbf8bb0a9e4f67da4bade600989 100644
--- a/services/ui/service.cc
+++ b/services/ui/service.cc
@@ -227,8 +227,9 @@ bool Service::OnConnect(const service_manager::ServiceInfo& remote_info,
return true;
}
-void Service::StartDisplayInit() {
- platform_screen_->Init(window_server_->display_manager());
+void Service::StartDisplayInit(bool window_manager_connected) {
+ platform_screen_->Init(window_server_->display_manager(),
+ !window_manager_connected);
tonikitoo 2016/11/22 03:07:39 nit: in order to self-document the parameter, mayb
Tom (Use chromium acct) 2016/11/22 19:19:48 Done.
}
void Service::OnFirstDisplayReady() {

Powered by Google App Engine
This is Rietveld 408576698