| Index: chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc
|
| diff --git a/chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc b/chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc
|
| index f44f6fd779449dcf1372ff94fb2b75285aaf11df..2ca2ef5a4f3f8541e20e62fb44e832c7214d094a 100644
|
| --- a/chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc
|
| +++ b/chrome/browser/chromeos/login/managed/locally_managed_user_creation_screen.cc
|
| @@ -97,6 +97,7 @@ LocallyManagedUserCreationScreen::LocallyManagedUserCreationScreen(
|
| }
|
|
|
| LocallyManagedUserCreationScreen::~LocallyManagedUserCreationScreen() {
|
| + CameraPresenceNotifier::GetInstance()->RemoveObserver(this);
|
| if (actor_)
|
| actor_->SetDelegate(NULL);
|
| if (image_decoder_.get())
|
| @@ -110,6 +111,7 @@ void LocallyManagedUserCreationScreen::PrepareToShow() {
|
| }
|
|
|
| void LocallyManagedUserCreationScreen::Show() {
|
| + CameraPresenceNotifier::GetInstance()->AddObserver(this);
|
| if (actor_) {
|
| actor_->Show();
|
| // TODO(antrim) : temorary hack (until upcoming hackaton). Should be
|
| @@ -162,6 +164,7 @@ void LocallyManagedUserCreationScreen::ShowInitialScreen() {
|
| }
|
|
|
| void LocallyManagedUserCreationScreen::Hide() {
|
| + CameraPresenceNotifier::GetInstance()->RemoveObserver(this);
|
| if (actor_)
|
| actor_->Hide();
|
| if (!on_error_screen_)
|
|
|