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

Unified Diff: ash/shell.cc

Issue 11091023: ash : Decouple power button controller and session state controller. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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/shell.cc
diff --git a/ash/shell.cc b/ash/shell.cc
index 3627616f794080c682bfccd2f5e06b325d2f8a1f..6ee3b8529a00471bcae1bcabe3f21d8cd47a4436 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -46,6 +46,7 @@
#include "ash/wm/panel_layout_manager.h"
#include "ash/wm/panel_window_event_filter.h"
#include "ash/wm/power_button_controller.h"
+#include "ash/wm/session_state_controller.h"
Daniel Erat 2012/10/09 17:28:55 keep this list alphabetized
Denis Kuznetsov (DE-MUC) 2012/10/11 11:37:12 Done.
#include "ash/wm/property_util.h"
#include "ash/wm/resize_shadow_controller.h"
#include "ash/wm/root_window_layout_manager.h"
@@ -253,6 +254,7 @@ Shell::~Shell() {
drag_drop_controller_.reset();
magnification_controller_.reset();
power_button_controller_.reset();
+ session_state_controller_.reset();
resize_shadow_controller_.reset();
shadow_controller_.reset();
tooltip_controller_.reset();
@@ -495,8 +497,10 @@ void Shell::Init() {
// the correct size.
user_wallpaper_delegate_->InitializeWallpaper();
- power_button_controller_.reset(new PowerButtonController);
- AddShellObserver(power_button_controller_.get());
+ session_state_controller_.reset(new SessionStateController);
+ power_button_controller_.reset(new PowerButtonController(
+ session_state_controller_.get()));
+ AddShellObserver(session_state_controller_.get());
if (initially_hide_cursor_)
cursor_manager_.ShowCursor(false);
« no previous file with comments | « ash/shell.h ('k') | ash/wm/power_button_controller.h » ('j') | ash/wm/power_button_controller.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698