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 "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/profiles/profile_window.h" | 10 #include "chrome/browser/profiles/profile_window.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 48 // reauthenticated. | 48 // reauthenticated. |
| 49 // |reason| can be REASON_UNLOCK or REASON_REAUTHENTICATION to indicate | 49 // |reason| can be REASON_UNLOCK or REASON_REAUTHENTICATION to indicate |
| 50 // whether this is a reauth or unlock scenario. | 50 // whether this is a reauth or unlock scenario. |
| 51 static void ShowReauthDialog(content::BrowserContext* browser_context, | 51 static void ShowReauthDialog(content::BrowserContext* browser_context, |
| 52 const std::string& email, | 52 const std::string& email, |
| 53 signin_metrics::Reason reason); | 53 signin_metrics::Reason reason); |
| 54 | 54 |
| 55 // Hides the reauth dialog if it is showing. | 55 // Hides the reauth dialog if it is showing. |
| 56 static void HideReauthDialog(); | 56 static void HideReauthDialog(); |
| 57 | 57 |
| 58 // Shows a dialog where the user login his or her profile by the first time | |
| 59 // via user manager. | |
| 60 static void ShowSigninDialog(content::BrowserContext* browser_context, | |
| 61 const base::FilePath profile_path); | |
| 62 | |
| 63 // Display local sign in error message withou browser. | |
|
pastarmovj
2016/09/21 08:44:10
nit: s/withou/without/
zmin
2016/09/21 16:40:04
Done.
| |
| 64 static void DisplayErrorMessage(); | |
| 65 | |
| 66 // Get the path of profile that is being signed in. | |
| 67 static base::FilePath GetSigninProfilePath(); | |
| 68 | |
| 58 // TODO(noms): Figure out if this size can be computed dynamically or adjusted | 69 // TODO(noms): Figure out if this size can be computed dynamically or adjusted |
|
sky
2016/09/20 23:30:19
Sorry for random comment, just noticing this now.
zmin
2016/09/21 16:40:04
Done.
| |
| 59 // for smaller screens. | 70 // for smaller screens. |
| 60 static const int kWindowWidth = 800; | 71 static const int kWindowWidth = 800; |
| 61 static const int kWindowHeight = 600; | 72 static const int kWindowHeight = 600; |
| 62 | 73 |
| 63 // Dimensions of the reauth dialog displaying the old-style signin flow with | 74 // Dimensions of the reauth dialog displaying the old-style signin flow with |
| 64 // the username and password challenge on the same form. | 75 // the username and password challenge on the same form. |
| 65 static const int kPasswordCombinedReauthDialogHeight = 440; | 76 static const int kPasswordCombinedReauthDialogHeight = 440; |
| 66 static const int kPasswordCombinedReauthDialogWidth = 360; | 77 static const int kPasswordCombinedReauthDialogWidth = 360; |
| 67 | 78 |
| 68 // Dimensions of the reauth dialog displaying the password-separated signin | 79 // Dimensions of the reauth dialog displaying the password-separated signin |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 91 content::WebContents* guest_web_contents_; | 102 content::WebContents* guest_web_contents_; |
| 92 | 103 |
| 93 DISALLOW_COPY_AND_ASSIGN(BaseReauthDialogDelegate); | 104 DISALLOW_COPY_AND_ASSIGN(BaseReauthDialogDelegate); |
| 94 }; | 105 }; |
| 95 | 106 |
| 96 private: | 107 private: |
| 97 DISALLOW_COPY_AND_ASSIGN(UserManager); | 108 DISALLOW_COPY_AND_ASSIGN(UserManager); |
| 98 }; | 109 }; |
| 99 | 110 |
| 100 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ | 111 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ |
| OLD | NEW |