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

Unified Diff: ash/mus/user_window_controller_impl.cc

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: merge fail Created 4 years, 6 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 | « ash/mus/root_window_controller.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/user_window_controller_impl.cc
diff --git a/ash/mus/user_window_controller_impl.cc b/ash/mus/user_window_controller_impl.cc
index 50389a22f92584a438c508f044b96f94542e9ac9..260811ee32884747676f09d0e7c285fc5e1c09a3 100644
--- a/ash/mus/user_window_controller_impl.cc
+++ b/ash/mus/user_window_controller_impl.cc
@@ -4,6 +4,8 @@
#include "ash/mus/user_window_controller_impl.h"
+#include "ash/common/shell_window_ids.h"
+#include "ash/mus/bridge/wm_window_mus.h"
#include "ash/mus/property_util.h"
#include "ash/mus/root_window_controller.h"
#include "ash/public/interfaces/container.mojom.h"
@@ -136,8 +138,9 @@ void UserWindowControllerImpl::RemoveObservers(::mus::Window* user_container) {
}
::mus::Window* UserWindowControllerImpl::GetUserWindowContainer() const {
- return root_controller_->GetWindowForContainer(
- mojom::Container::USER_PRIVATE_WINDOWS);
+ WmWindowMus* window = root_controller_->GetWindowByShellWindowId(
+ kShellWindowId_DefaultContainer);
+ return window ? window->mus_window() : nullptr;
}
void UserWindowControllerImpl::OnTreeChanging(const TreeChangeParams& params) {
« no previous file with comments | « ash/mus/root_window_controller.cc ('k') | ash/mus/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698