Chromium Code Reviews| Index: chrome/browser/ui/user_manager.h |
| diff --git a/chrome/browser/ui/user_manager.h b/chrome/browser/ui/user_manager.h |
| index e6d2d349beb89422174052ab254aecdb517016af..b7503fbe49919581a083918bac8bb36c36b35294 100644 |
| --- a/chrome/browser/ui/user_manager.h |
| +++ b/chrome/browser/ui/user_manager.h |
| @@ -18,6 +18,21 @@ class FilePath; |
| // Cross-platform methods for displaying the user manager. |
| class UserManager { |
| public: |
| + // TODO(noms): Figure out if this size can be computed dynamically or adjusted |
| + // for smaller screens. |
| + static const int kWindowWidth = 800; |
|
sky
2016/09/21 23:00:02
constexpr on all these.
zmin
2016/09/21 23:49:55
Will do.
|
| + static const int kWindowHeight = 600; |
| + |
| + // Dimensions of the reauth dialog displaying the old-style signin flow with |
| + // the username and password challenge on the same form. |
| + static const int kPasswordCombinedReauthDialogHeight = 440; |
| + static const int kPasswordCombinedReauthDialogWidth = 360; |
| + |
| + // Dimensions of the reauth dialog displaying the password-separated signin |
| + // flow. |
| + static const int kReauthDialogHeight = 512; |
| + static const int kReauthDialogWidth = 448; |
| + |
| // Shows the User Manager or re-activates an existing one, focusing the |
| // profile given by |profile_path_to_focus|; passing an empty base::FilePath |
| // focuses no user pod. Based on the value of |tutorial_mode|, a tutorial |
| @@ -55,20 +70,20 @@ class UserManager { |
| // Hides the reauth dialog if it is showing. |
| static void HideReauthDialog(); |
| - // TODO(noms): Figure out if this size can be computed dynamically or adjusted |
| - // for smaller screens. |
| - static const int kWindowWidth = 800; |
| - static const int kWindowHeight = 600; |
| +// TODO(zmin): Remove the condition for MACOSX once user_manager_mac.cc is |
| +// updated. |
| +#if !defined(OS_MACOSX) |
| + // Shows a dialog where the user login his or her profile by the first time |
| + // via user manager. |
| + static void ShowSigninDialog(content::BrowserContext* browser_context, |
| + const base::FilePath& profile_path); |
| - // Dimensions of the reauth dialog displaying the old-style signin flow with |
| - // the username and password challenge on the same form. |
| - static const int kPasswordCombinedReauthDialogHeight = 440; |
| - static const int kPasswordCombinedReauthDialogWidth = 360; |
| + // Display local sign in error message without browser. |
| + static void DisplayErrorMessage(); |
| - // Dimensions of the reauth dialog displaying the password-separated signin |
| - // flow. |
| - static const int kReauthDialogHeight = 512; |
| - static const int kReauthDialogWidth = 448; |
| + // Get the path of profile that is being signed in. |
| + static base::FilePath GetSigninProfilePath(); |
| +#endif |
| // Abstract base class for performing online reauthentication of profiles in |
| // the User Manager. It is concretely implemented in UserManagerMac and |