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

Unified Diff: chrome/browser/chromeos/login/lock/screen_locker.h

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/public/interfaces/lock_screen.mojom ('k') | chrome/browser/chromeos/login/lock/screen_locker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/lock/screen_locker.h
diff --git a/chrome/browser/chromeos/login/lock/screen_locker.h b/chrome/browser/chromeos/login/lock/screen_locker.h
index 62bb07343362bcbb7f0f3ceb2feaa32353f31a7c..bd824effb87f2a7ae61e3d032d57c25e69c91087 100644
--- a/chrome/browser/chromeos/login/lock/screen_locker.h
+++ b/chrome/browser/chromeos/login/lock/screen_locker.h
@@ -102,6 +102,8 @@ class ScreenLocker : public AuthStatusConsumer,
DISALLOW_COPY_AND_ASSIGN(Delegate);
};
+ using AuthenticateCallback = base::OnceCallback<void(bool auth_success)>;
+
explicit ScreenLocker(const user_manager::UserList& users);
// Returns the default instance if it has been created.
@@ -127,7 +129,8 @@ class ScreenLocker : public AuthStatusConsumer,
void UnlockOnLoginSuccess();
// Authenticates the user with given |user_context|.
- void Authenticate(const UserContext& user_context);
+ void Authenticate(const UserContext& user_context,
+ AuthenticateCallback callback);
// Close message bubble to clear error messages.
void ClearErrors();
@@ -269,6 +272,9 @@ class ScreenLocker : public AuthStatusConsumer,
// Type of the last unlock attempt.
UnlockType unlock_attempt_type_ = AUTH_PASSWORD;
+ // Callback to run, if any, when authentication is done.
+ AuthenticateCallback on_auth_complete_;
+
// Copy of parameters passed to last call of OnLoginSuccess for usage in
// UnlockOnLoginSuccess().
std::unique_ptr<AuthenticationParametersCapture> authentication_capture_;
« no previous file with comments | « ash/public/interfaces/lock_screen.mojom ('k') | chrome/browser/chromeos/login/lock/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698