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

Unified Diff: ash/shell/lock_view.cc

Issue 2111443002: mash: Migrate SessionStateDelegate access to WmShell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 6 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/lock_view.cc
diff --git a/ash/shell/lock_view.cc b/ash/shell/lock_view.cc
index cac32caf9f42896e91991e214c7dc480bab25c17..7de70a40cebc77e7c7572208487f517ec758caf9 100644
--- a/ash/shell/lock_view.cc
+++ b/ash/shell/lock_view.cc
@@ -4,6 +4,7 @@
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/shell_window_ids.h"
+#include "ash/common/wm_shell.h"
#include "ash/shell.h"
#include "ash/shell/example_factory.h"
#include "base/strings/utf_string_conversions.h"
@@ -18,8 +19,6 @@
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
-using ash::Shell;
-
namespace ash {
namespace shell {
@@ -64,7 +63,7 @@ class LockView : public views::WidgetDelegateView,
// Overridden from views::WidgetDelegateView:
void WindowClosing() override {
- Shell::GetInstance()->session_state_delegate()->UnlockScreen();
+ WmShell::Get()->GetSessionStateDelegate()->UnlockScreen();
}
// Overridden from views::ButtonListener:

Powered by Google App Engine
This is Rietveld 408576698