Chromium Code Reviews| Index: chrome/browser/chromeos/power/login_lock_state_notifier.cc |
| diff --git a/chrome/browser/chromeos/power/login_lock_state_notifier.cc b/chrome/browser/chromeos/power/login_lock_state_notifier.cc |
| index f5a0022c2e12e5bdbaeb63e47d6967e40357aa82..0c47a5c1ec9f4fea547377e654ccbdd4f22ddc12 100644 |
| --- a/chrome/browser/chromeos/power/login_lock_state_notifier.cc |
| +++ b/chrome/browser/chromeos/power/login_lock_state_notifier.cc |
| @@ -7,7 +7,6 @@ |
| #include "ash/shell.h" |
| #include "base/logging.h" |
| #include "chrome/browser/chrome_notification_types.h" |
| -#include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| #include "content/public/browser/notification_service.h" |
| namespace ash { |
| @@ -19,12 +18,6 @@ namespace chromeos { |
| LoginLockStateNotifier::LoginLockStateNotifier() { |
|
James Cook
2017/04/07 20:26:55
This isn't really a LockStateNotifier any more. It
xiyuan
2017/04/07 21:50:01
Yes, my plan is to retire this class completely. I
|
| registrar_.Add(this, chrome::NOTIFICATION_APP_TERMINATING, |
| content::NotificationService::AllSources()); |
| - registrar_.Add(this, chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED, |
| - content::NotificationService::AllSources()); |
| - |
| - const ScreenLocker* locker = ScreenLocker::default_screen_locker(); |
| - bool locked = locker && locker->locked(); |
| - ash::Shell::Get()->OnLockStateChanged(locked); |
| } |
| LoginLockStateNotifier::~LoginLockStateNotifier() {} |
| @@ -37,11 +30,6 @@ void LoginLockStateNotifier::Observe( |
| case chrome::NOTIFICATION_APP_TERMINATING: |
| ash::Shell::Get()->OnAppTerminating(); |
| break; |
| - case chrome::NOTIFICATION_SCREEN_LOCK_STATE_CHANGED: { |
| - bool locked = *content::Details<bool>(details).ptr(); |
| - ash::Shell::Get()->OnLockStateChanged(locked); |
| - break; |
| - } |
| default: |
| NOTREACHED() << "Unexpected notification " << type; |
| } |