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

Unified Diff: ash/mus/bridge/wm_globals_mus.cc

Issue 2033843003: Makes ash/mus use RootWindowControllerCommon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move_mash_wm
Patch Set: git cl add 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
Index: ash/mus/bridge/wm_globals_mus.cc
diff --git a/ash/mus/bridge/wm_globals_mus.cc b/ash/mus/bridge/wm_globals_mus.cc
index fc7249a06f1d53e3bdfc0cd826c70c7f593afab7..b0cd51c9e1d1cd658d262de06073b0c5c4e92d98 100644
--- a/ash/mus/bridge/wm_globals_mus.cc
+++ b/ash/mus/bridge/wm_globals_mus.cc
@@ -187,8 +187,9 @@ bool WmGlobalsMus::IsActivationParent(::mus::Window* window) {
if (!window)
return false;
- for (size_t i = 0; i < kNumActivationContainers; ++i) {
- if (window->local_id() == static_cast<int>(kActivationContainers[i]))
+ const int shell_window_id = WmWindowMus::Get(window)->GetShellWindowId();
+ for (size_t i = 0; i < kNumActivatableShellWindowIds; ++i) {
+ if (shell_window_id == kActivatableShellWindowIds[i])
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698