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

Unified Diff: ash/common/system/chromeos/session/logout_confirmation_controller.cc

Issue 2739763003: Moves maintaining ShellObservers back to Shell (Closed)
Patch Set: merge 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
Index: ash/common/system/chromeos/session/logout_confirmation_controller.cc
diff --git a/ash/common/system/chromeos/session/logout_confirmation_controller.cc b/ash/common/system/chromeos/session/logout_confirmation_controller.cc
index 80726792bb7b4cec31103ed29c003607d19f12c2..622c9122fd4cbf69deb2428222743d283f33d4bd 100644
--- a/ash/common/system/chromeos/session/logout_confirmation_controller.cc
+++ b/ash/common/system/chromeos/session/logout_confirmation_controller.cc
@@ -11,6 +11,7 @@
#include "ash/common/system/tray/system_tray_delegate.h"
#include "ash/common/system/tray/system_tray_notifier.h"
#include "ash/common/wm_shell.h"
+#include "ash/shell.h"
#include "base/location.h"
#include "base/time/default_tick_clock.h"
#include "base/time/tick_clock.h"
@@ -28,14 +29,14 @@ LogoutConfirmationController::LogoutConfirmationController(
dialog_(NULL),
logout_timer_(false, false) {
if (WmShell::HasInstance()) {
- WmShell::Get()->AddShellObserver(this);
+ Shell::GetInstance()->AddShellObserver(this);
WmShell::Get()->system_tray_notifier()->AddLastWindowClosedObserver(this);
}
}
LogoutConfirmationController::~LogoutConfirmationController() {
if (WmShell::HasInstance()) {
- WmShell::Get()->RemoveShellObserver(this);
+ Shell::GetInstance()->RemoveShellObserver(this);
WmShell::Get()->system_tray_notifier()->RemoveLastWindowClosedObserver(
this);
}

Powered by Google App Engine
This is Rietveld 408576698