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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2620913003: Removes WmRootWindowController subclasses (Closed)
Patch Set: spelling Created 3 years, 11 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/aura/wm_root_window_controller_aura.cc ('k') | ash/common/wm_root_window_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/aura/wm_window_aura.cc
diff --git a/ash/aura/wm_window_aura.cc b/ash/aura/wm_window_aura.cc
index 371b04801dcd805ee260fea64ae1ddeddcf435a5..01797581a8a59830d6f442f43b8410cd0fa16893 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -5,7 +5,6 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/aura/aura_layout_manager_adapter.h"
-#include "ash/aura/wm_root_window_controller_aura.h"
#include "ash/aura/wm_shell_aura.h"
#include "ash/common/ash_constants.h"
#include "ash/common/shelf/shelf_item_types.h"
@@ -15,6 +14,7 @@
#include "ash/common/wm_window_observer.h"
#include "ash/common/wm_window_property.h"
#include "ash/public/cpp/shell_window_ids.h"
+#include "ash/root_window_controller.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
#include "ash/wm/resize_handle_window_targeter.h"
@@ -152,7 +152,11 @@ const WmWindow* WmWindowAura::GetRootWindow() const {
WmRootWindowController* WmWindowAura::GetRootWindowController() {
aura::Window* root = window_->GetRootWindow();
- return root ? WmRootWindowControllerAura::Get(root) : nullptr;
+ if (!root)
+ return nullptr;
+
+ RootWindowController* rwc = RootWindowController::ForWindow(root);
+ return rwc ? rwc->wm_root_window_controller() : nullptr;
}
WmShell* WmWindowAura::GetShell() const {
« no previous file with comments | « ash/aura/wm_root_window_controller_aura.cc ('k') | ash/common/wm_root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698