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

Unified Diff: components/mus/mus_app.cc

Issue 1775583002: Moves FrameDecorations from Display to WindowManagerState (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 9 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 | « no previous file | components/mus/ws/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/mus_app.cc
diff --git a/components/mus/mus_app.cc b/components/mus/mus_app.cc
index dac90c8ac1cc0e4c4ea5e3fe8b6918616d0ec966..f04ac9bc32b9135d16e8e731bc695757a14d97a7 100644
--- a/components/mus/mus_app.cc
+++ b/components/mus/mus_app.cc
@@ -16,6 +16,7 @@
#include "components/mus/ws/display.h"
#include "components/mus/ws/display_binding.h"
#include "components/mus/ws/display_manager.h"
+#include "components/mus/ws/user_display_manager.h"
#include "components/mus/ws/window_tree.h"
#include "components/mus/ws/window_tree_binding.h"
#include "components/mus/ws/window_tree_factory.h"
@@ -181,14 +182,10 @@ void MandolineUIServicesApp::CreateDefaultDisplays() {
void MandolineUIServicesApp::Create(mojo::Connection* connection,
mojom::DisplayManagerRequest request) {
- if (!connection_manager_->display_manager()->has_displays()) {
- scoped_ptr<PendingRequest> pending_request(new PendingRequest);
- pending_request->dm_request.reset(
- new mojo::InterfaceRequest<mojom::DisplayManager>(std::move(request)));
- pending_requests_.push_back(std::move(pending_request));
- return;
- }
- connection_manager_->AddDisplayManagerBinding(std::move(request));
+ // TODO(sky): validate id.
+ connection_manager_->display_manager()
+ ->GetUserDisplayManager(connection->GetRemoteUserID())
+ ->AddDisplayManagerBinding(std::move(request));
}
void MandolineUIServicesApp::Create(
« no previous file with comments | « no previous file | components/mus/ws/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698