| Index: chrome/browser/chromeos/power/power_button_observer.cc
|
| diff --git a/chrome/browser/chromeos/power/power_button_observer.cc b/chrome/browser/chromeos/power/power_button_observer.cc
|
| index a10e5b5ff1edac94b235c46c2e7a0e3308599dca..57742ec10d1bae50f3579bffcdbc71487429c720 100644
|
| --- a/chrome/browser/chromeos/power/power_button_observer.cc
|
| +++ b/chrome/browser/chromeos/power/power_button_observer.cc
|
| @@ -51,6 +51,7 @@ PowerButtonObserver::PowerButtonObserver() {
|
| content::NotificationService::AllSources());
|
|
|
| DBusThreadManager::Get()->GetPowerManagerClient()->AddObserver(this);
|
| + DBusThreadManager::Get()->GetSessionManagerClient()->AddObserver(this);
|
|
|
| // Tell the controller about the initial state.
|
| ash::Shell::GetInstance()->OnLoginStateChanged(GetCurrentLoginStatus());
|
| @@ -61,6 +62,7 @@ PowerButtonObserver::PowerButtonObserver() {
|
| }
|
|
|
| PowerButtonObserver::~PowerButtonObserver() {
|
| + DBusThreadManager::Get()->GetSessionManagerClient()->RemoveObserver(this);
|
| DBusThreadManager::Get()->GetPowerManagerClient()->RemoveObserver(this);
|
| }
|
|
|
|
|