Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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); | |
|
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.
| |
| 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_ |
| OLD | NEW |