| Index: ash/login/ui/lock_contents_view.cc
|
| diff --git a/ash/login/ui/lock_contents_view.cc b/ash/login/ui/lock_contents_view.cc
|
| index 59b5d15e757fa4b2ebd347e97cb7ef883421c145..f20db5c951cd99541df817f044a3dbe37054b157 100644
|
| --- a/ash/login/ui/lock_contents_view.cc
|
| +++ b/ash/login/ui/lock_contents_view.cc
|
| @@ -5,6 +5,7 @@
|
| #include "ash/login/ui/lock_contents_view.h"
|
|
|
| #include "ash/login/lock_screen_controller.h"
|
| +#include "ash/login/ui/lock_screen.h"
|
| #include "ash/public/interfaces/user_info.mojom.h"
|
| #include "ash/session/session_controller.h"
|
| #include "ash/shell.h"
|
| @@ -44,7 +45,10 @@ void LockContentsView::ButtonPressed(views::Button* sender,
|
| Shell::Get()->session_controller()->GetUserSession(user_index);
|
| Shell::Get()->lock_screen_controller()->AuthenticateUser(
|
| user_session->user_info->account_id, std::string(),
|
| - false /* authenticated_by_pin */);
|
| + false /* authenticated_by_pin */, base::BindOnce([](bool success) {
|
| + if (success)
|
| + DestroyLockScreen();
|
| + }));
|
| }
|
|
|
| } // namespace ash
|
|
|