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

Unified Diff: ash/login/ui/lock_contents_view.cc

Issue 2896093003: cros: Make sure views-based lock screen is destroyed after it is dismissed. (Closed)
Patch Set: Address comments Created 3 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
« no previous file with comments | « ash/login/mock_lock_screen_client.cc ('k') | ash/login/ui/lock_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c0244b50864bc855124d1864c4e1e4f83815d049..fbd5273cc7a359670ed3776f154ef32e01c18558 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"
@@ -45,7 +46,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
« no previous file with comments | « ash/login/mock_lock_screen_client.cc ('k') | ash/login/ui/lock_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698