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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // reauthenticated. | 66 // reauthenticated. |
67 // |reason| can be REASON_UNLOCK or REASON_REAUTHENTICATION to indicate | 67 // |reason| can be REASON_UNLOCK or REASON_REAUTHENTICATION to indicate |
68 // whether this is a reauth or unlock scenario. | 68 // whether this is a reauth or unlock scenario. |
69 static void ShowReauthDialog(content::BrowserContext* browser_context, | 69 static void ShowReauthDialog(content::BrowserContext* browser_context, |
70 const std::string& email, | 70 const std::string& email, |
71 signin_metrics::Reason reason); | 71 signin_metrics::Reason reason); |
72 | 72 |
73 // Hides the reauth dialog if it is showing. | 73 // Hides the reauth dialog if it is showing. |
74 static void HideReauthDialog(); | 74 static void HideReauthDialog(); |
75 | 75 |
76 // Shows a dialog where the user login his or her profile by the first time | 76 // Shows a dialog where the user logs into their profile for the first time |
77 // via user manager. | 77 // via the user manager. |
78 static void ShowSigninDialog(content::BrowserContext* browser_context, | 78 static void ShowSigninDialog(content::BrowserContext* browser_context, |
79 const base::FilePath& profile_path); | 79 const base::FilePath& profile_path); |
80 | 80 |
81 // Display local sign in error message without browser. | 81 // Display local sign in error message without browser. |
82 static void DisplayErrorMessage(); | 82 static void DisplayErrorMessage(); |
83 | 83 |
84 // Get the path of profile that is being signed in. | 84 // Get the path of profile that is being signed in. |
85 static base::FilePath GetSigninProfilePath(); | 85 static base::FilePath GetSigninProfilePath(); |
86 | 86 |
87 // Abstract base class for performing online reauthentication of profiles in | 87 // Abstract base class for performing online reauthentication of profiles in |
(...skipping 17 matching lines...) Expand all Loading... |
105 content::WebContents* guest_web_contents_; | 105 content::WebContents* guest_web_contents_; |
106 | 106 |
107 DISALLOW_COPY_AND_ASSIGN(BaseReauthDialogDelegate); | 107 DISALLOW_COPY_AND_ASSIGN(BaseReauthDialogDelegate); |
108 }; | 108 }; |
109 | 109 |
110 private: | 110 private: |
111 DISALLOW_COPY_AND_ASSIGN(UserManager); | 111 DISALLOW_COPY_AND_ASSIGN(UserManager); |
112 }; | 112 }; |
113 | 113 |
114 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ | 114 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ |
OLD | NEW |