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

Unified Diff: ash/common/wm_shell.cc

Issue 2766543002: Move even more from WmShell to Shell (Closed)
Patch Set: Created 3 years, 9 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/common/wm_shell.h ('k') | ash/content/display/screen_orientation_controller_chromeos_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm_shell.cc
diff --git a/ash/common/wm_shell.cc b/ash/common/wm_shell.cc
index 8b1e4400ab579cffc7bf3add8f06228e9ae36b9b..28108d71ee0ff5ab6f5be271eec65dc04897b069 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -7,8 +7,6 @@
#include <utility>
#include "ash/common/accelerators/accelerator_controller.h"
-#include "ash/common/media_controller.h"
-#include "ash/common/new_window_controller.h"
#include "ash/common/session/session_controller.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shelf/app_list_shelf_item_delegate.h"
@@ -20,9 +18,6 @@
#include "ash/common/shutdown_controller.h"
#include "ash/common/system/chromeos/network/vpn_list.h"
#include "ash/common/system/tray/system_tray_notifier.h"
-#include "ash/common/wm/immersive_context_ash.h"
-#include "ash/common/wm/maximize_mode/maximize_mode_controller.h"
-#include "ash/common/wm/mru_window_tracker.h"
#include "ash/common/wm/overview/window_selector_controller.h"
#include "ash/common/wm/root_window_finder.h"
#include "ash/common/wm/system_modal_container_layout_manager.h"
@@ -132,10 +127,7 @@ void WmShell::SetShelfDelegateForTesting(
}
WmShell::WmShell()
- : immersive_context_(base::MakeUnique<ImmersiveContextAsh>()),
- media_controller_(base::MakeUnique<MediaController>()),
- new_window_controller_(base::MakeUnique<NewWindowController>()),
- session_controller_(base::MakeUnique<SessionController>()),
+ : session_controller_(base::MakeUnique<SessionController>()),
shelf_controller_(base::MakeUnique<ShelfController>()),
shutdown_controller_(base::MakeUnique<ShutdownController>()),
system_tray_notifier_(base::MakeUnique<SystemTrayNotifier>()),
@@ -208,22 +200,6 @@ void WmShell::DeleteWindowSelectorController() {
window_selector_controller_.reset();
}
-void WmShell::CreateMaximizeModeController() {
- maximize_mode_controller_.reset(new MaximizeModeController);
-}
-
-void WmShell::DeleteMaximizeModeController() {
- maximize_mode_controller_.reset();
-}
-
-void WmShell::CreateMruWindowTracker() {
- mru_window_tracker_.reset(new MruWindowTracker);
-}
-
-void WmShell::DeleteMruWindowTracker() {
- mru_window_tracker_.reset();
-}
-
void WmShell::SessionStateChanged(session_manager::SessionState state) {
// Create the shelf when a session becomes active. It's safe to do this
// multiple times (e.g. initial login vs. multiprofile add session).
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/content/display/screen_orientation_controller_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698