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) { |