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

Unified Diff: ash/common/wm_shell.cc

Issue 2775973002: Promotes more accessors from WmShell to Shell (Closed)
Patch Set: feedback 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/shell.h » ('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 a74f177e528306f7c9201f65cedb2451f9645ab8..61197139f5eadf5a80e370546589d26e4e1e5672 100644
--- a/ash/common/wm_shell.cc
+++ b/ash/common/wm_shell.cc
@@ -11,13 +11,8 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shelf/app_list_shelf_item_delegate.h"
#include "ash/common/shell_delegate.h"
-#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/overview/window_selector_controller.h"
#include "ash/common/wm/root_window_finder.h"
#include "ash/common/wm/system_modal_container_layout_manager.h"
-#include "ash/common/wm/window_cycle_controller.h"
#include "ash/common/wm_window.h"
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/root_window_controller.h"
@@ -71,13 +66,7 @@ void WmShell::RemoveLockStateObserver(LockStateObserver* observer) {
lock_state_observers_.RemoveObserver(observer);
}
-WmShell::WmShell()
- : shutdown_controller_(base::MakeUnique<ShutdownController>()),
- system_tray_notifier_(base::MakeUnique<SystemTrayNotifier>()),
- vpn_list_(base::MakeUnique<VpnList>()),
- window_cycle_controller_(base::MakeUnique<WindowCycleController>()),
- window_selector_controller_(
- base::MakeUnique<WindowSelectorController>()) {
+WmShell::WmShell() {
DCHECK(!instance_);
instance_ = this;
}
@@ -134,12 +123,4 @@ void WmShell::OnModalWindowRemoved(WmWindow* removed) {
}
}
-void WmShell::DeleteWindowCycleController() {
- window_cycle_controller_.reset();
-}
-
-void WmShell::DeleteWindowSelectorController() {
- window_selector_controller_.reset();
-}
-
} // namespace ash
« no previous file with comments | « ash/common/wm_shell.h ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698