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

Unified Diff: ash/aura/wm_shell_aura.cc

Issue 2118593002: mash: Migrate ShellDelegate ownership and access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup. Created 4 years, 5 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/aura/wm_shell_aura.cc
diff --git a/ash/aura/wm_shell_aura.cc b/ash/aura/wm_shell_aura.cc
index 90a6d84fae0f93ce17e362d0fe62e5407df9e2ed..19871636cb123b25a6d12df475787fc7ca58e342 100644
--- a/ash/aura/wm_shell_aura.cc
+++ b/ash/aura/wm_shell_aura.cc
@@ -6,6 +6,7 @@
#include "ash/aura/wm_window_aura.h"
#include "ash/common/session/session_state_delegate.h"
+#include "ash/common/shell_delegate.h"
#include "ash/common/shell_observer.h"
#include "ash/common/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard.h"
#include "ash/common/wm/mru_window_tracker.h"
@@ -15,7 +16,6 @@
#include "ash/display/display_manager.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/shell.h"
-#include "ash/shell_delegate.h"
#include "ash/wm/drag_window_resizer.h"
#include "ash/wm/maximize_mode/maximize_mode_event_handler_aura.h"
#include "ash/wm/screen_pinning_controller.h"
@@ -38,7 +38,7 @@
namespace ash {
-WmShellAura::WmShellAura() {
+WmShellAura::WmShellAura(ShellDelegate* delegate) : WmShell(delegate) {
WmShell::Set(this);
}
@@ -93,7 +93,7 @@ bool WmShellAura::IsActiveDisplayId(int64_t display_id) const {
}
bool WmShellAura::IsForceMaximizeOnFirstRun() {
- return Shell::GetInstance()->delegate()->IsForceMaximizeOnFirstRun();
+ return delegate()->IsForceMaximizeOnFirstRun();
}
bool WmShellAura::IsPinned() {
@@ -106,7 +106,7 @@ void WmShellAura::SetPinnedWindow(WmWindow* window) {
}
bool WmShellAura::CanShowWindowForUser(WmWindow* window) {
- return Shell::GetInstance()->delegate()->CanShowWindowForUser(window);
+ return delegate()->CanShowWindowForUser(window);
}
void WmShellAura::LockCursor() {
« no previous file with comments | « ash/aura/wm_shell_aura.h ('k') | ash/common/shell_delegate.h » ('j') | ash/common/wm_shell.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698