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

Unified Diff: ash/aura/wm_window_aura.cc

Issue 2625843002: Folds WmRootWindowController into RootWindowController (Closed)
Patch Set: definition in wm_root_window_controller.cc 2 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_window_aura.h ('k') | ash/common/accelerators/accelerator_controller.cc » ('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 01797581a8a59830d6f442f43b8410cd0fa16893..e127dc8e9c1f2dc1086e3b78a091ce96c5a6bdae 100644
--- a/ash/aura/wm_window_aura.cc
+++ b/ash/aura/wm_window_aura.cc
@@ -150,13 +150,9 @@ const WmWindow* WmWindowAura::GetRootWindow() const {
return Get(window_->GetRootWindow());
}
-WmRootWindowController* WmWindowAura::GetRootWindowController() {
+RootWindowController* WmWindowAura::GetRootWindowController() {
aura::Window* root = window_->GetRootWindow();
- if (!root)
- return nullptr;
-
- RootWindowController* rwc = RootWindowController::ForWindow(root);
- return rwc ? rwc->wm_root_window_controller() : nullptr;
+ return root ? RootWindowController::ForWindow(root) : nullptr;
}
WmShell* WmWindowAura::GetShell() const {
« no previous file with comments | « ash/aura/wm_window_aura.h ('k') | ash/common/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698