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

Unified Diff: chrome/browser/ui/user_manager.h

Issue 1220843003: Perform online reauth when password is changed for a locked profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 5 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
Index: chrome/browser/ui/user_manager.h
diff --git a/chrome/browser/ui/user_manager.h b/chrome/browser/ui/user_manager.h
index 4e0d21715c91b7a12447ca4aa797d0dfa4596fb3..c0c77e4d664349ad605cf2943ce65f4bd7deed06 100644
--- a/chrome/browser/ui/user_manager.h
+++ b/chrome/browser/ui/user_manager.h
@@ -32,6 +32,14 @@ class UserManager {
// To be called once the User Manager's contents are showing.
static void OnUserManagerShown();
+ // Shows a dialog where the user can re-authenticate when their profile is
+ // not yet open. This is called from the user manager when a profile is
+ // locked and it has detected that the user's password has changed since the
+ // profile was locked.
+ static void ShowReauthDialog(content::BrowserContext* browser_context,
+ const std::string& email,
+ size_t profile_index);
sky 2015/07/23 16:56:04 Is it common to pass around an index like this as
Alexei Svitkine (slow) 2015/07/23 21:49:33 I share this concern. I think it can be a problem
Roger Tawa OOO till Jul 10th 2015/07/24 16:15:12 I redid this code to no longer need an index.
+
// TODO(noms): Figure out if this size can be computed dynamically or adjusted
// for smaller screens.
static const int kWindowWidth = 800;

Powered by Google App Engine
This is Rietveld 408576698