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

Side by Side 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: polish 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_USER_MANAGER_H_
6 #define CHROME_BROWSER_UI_USER_MANAGER_H_ 6 #define CHROME_BROWSER_UI_USER_MANAGER_H_
7 7
8 #include "chrome/browser/profiles/profile_window.h" 8 #include "chrome/browser/profiles/profile_window.h"
9 9
10 namespace base { 10 namespace base {
(...skipping 14 matching lines...) Expand all
25 25
26 // Hides the User Manager. 26 // Hides the User Manager.
27 static void Hide(); 27 static void Hide();
28 28
29 // Returns whether the User Manager is showing. 29 // Returns whether the User Manager is showing.
30 static bool IsShowing(); 30 static bool IsShowing();
31 31
32 // To be called once the User Manager's contents are showing. 32 // To be called once the User Manager's contents are showing.
33 static void OnUserManagerShown(); 33 static void OnUserManagerShown();
34 34
35 // Shows a dialog where the user can re-authenticate when their profile is
36 // not yet open. This is called from the user manager when a profile is
37 // locked and it has detected that the user's password has changed since the
38 // profile was locked.
39 static void ShowReauthDialog(content::BrowserContext* browser_context,
40 const std::string& email,
41 size_t profile_index);
42
35 // TODO(noms): Figure out if this size can be computed dynamically or adjusted 43 // TODO(noms): Figure out if this size can be computed dynamically or adjusted
36 // for smaller screens. 44 // for smaller screens.
37 static const int kWindowWidth = 800; 45 static const int kWindowWidth = 800;
38 static const int kWindowHeight = 600; 46 static const int kWindowHeight = 600;
39 47
40 private: 48 private:
41 DISALLOW_COPY_AND_ASSIGN(UserManager); 49 DISALLOW_COPY_AND_ASSIGN(UserManager);
42 }; 50 };
43 51
44 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ 52 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698