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

Side by Side Diff: chrome/browser/ui/user_manager.h

Issue 2552473002: Display error message when user try to open a locked supervised user profile when force-sign-in is … (Closed)
Patch Set: refactor Created 4 years 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 "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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // -From the user manager when a profile is locked and the user's password is 63 // -From the user manager when a profile is locked and the user's password is
64 // detected to have been changed. 64 // detected to have been changed.
65 // -From the user manager when a custodian account needs to be 65 // -From the user manager when a custodian account needs to be
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 dialog if it is showing.
74 static void HideReauthDialog(); 74 static void HideDialog();
sky 2016/12/08 20:57:49 It's confusing that this class has Show(), Hide, S
75 75
76 // Shows a dialog where the user logs into their profile for the first time 76 // Shows a dialog where the user logs into their profile for the first time
77 // via the 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 // Show the dialog and display local sign in error message without browser.
85 static void ShowDialogAndDisplayErrorMessage(
86 content::BrowserContext* browser_context);
87
84 // Get the path of profile that is being signed in. 88 // Get the path of profile that is being signed in.
85 static base::FilePath GetSigninProfilePath(); 89 static base::FilePath GetSigninProfilePath();
86 90
87 // Abstract base class for performing online reauthentication of profiles in 91 // Abstract base class for performing online reauthentication of profiles in
88 // the User Manager. It is concretely implemented in UserManagerMac and 92 // the User Manager. It is concretely implemented in UserManagerMac and
89 // UserManagerView to specialize the closing of the UI's dialog widgets. 93 // UserManagerView to specialize the closing of the UI's dialog widgets.
90 class BaseReauthDialogDelegate : public content::WebContentsDelegate { 94 class BaseReauthDialogDelegate : public content::WebContentsDelegate {
91 public: 95 public:
92 BaseReauthDialogDelegate(); 96 BaseReauthDialogDelegate();
93 97
(...skipping 11 matching lines...) Expand all
105 content::WebContents* guest_web_contents_; 109 content::WebContents* guest_web_contents_;
106 110
107 DISALLOW_COPY_AND_ASSIGN(BaseReauthDialogDelegate); 111 DISALLOW_COPY_AND_ASSIGN(BaseReauthDialogDelegate);
108 }; 112 };
109 113
110 private: 114 private:
111 DISALLOW_COPY_AND_ASSIGN(UserManager); 115 DISALLOW_COPY_AND_ASSIGN(UserManager);
112 }; 116 };
113 117
114 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_ 118 #endif // CHROME_BROWSER_UI_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/user_manager_mac.mm ('k') | chrome/browser/ui/views/profiles/user_manager_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698