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

Side by Side Diff: chrome/browser/ui/webui/signin/signin_create_profile_handler.h

Issue 2383823002: With force signin enabled, the signin dialog will be displayed after profile creation instead of br… (Closed)
Patch Set: cr Created 4 years, 2 months 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/signin_create_profile_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 50 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
51 ImportSupervisedUser); 51 ImportSupervisedUser);
52 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 52 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
53 ImportSupervisedUserAlreadyOnDevice); 53 ImportSupervisedUserAlreadyOnDevice);
54 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 54 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
55 CustodianNotAuthenticated); 55 CustodianNotAuthenticated);
56 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 56 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
57 CustodianHasAuthError); 57 CustodianHasAuthError);
58 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest, 58 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
59 NotAllowedToCreateSupervisedUser); 59 NotAllowedToCreateSupervisedUser);
60 FRIEND_TEST_ALL_PREFIXES(SigninCreateProfileHandlerTest,
61 CreateProfileWithForceSignin);
60 #endif 62 #endif
61 63
62 // WebUIMessageHandler implementation. 64 // WebUIMessageHandler implementation.
63 void RegisterMessages() override; 65 void RegisterMessages() override;
64 66
65 // content::NotificationObserver implementation: 67 // content::NotificationObserver implementation:
66 void Observe(int type, 68 void Observe(int type,
67 const content::NotificationSource& source, 69 const content::NotificationSource& source,
68 const content::NotificationDetails& details) override; 70 const content::NotificationDetails& details) override;
69 71
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // Creates desktop shortcut and updates the UI to indicate success 135 // Creates desktop shortcut and updates the UI to indicate success
134 // when creating a profile. 136 // when creating a profile.
135 void CreateShortcutAndShowSuccess(bool create_shortcut, 137 void CreateShortcutAndShowSuccess(bool create_shortcut,
136 Profile* custodian_profile, 138 Profile* custodian_profile,
137 Profile* profile); 139 Profile* profile);
138 140
139 // Opens a new window for |profile|. 141 // Opens a new window for |profile|.
140 virtual void OpenNewWindowForProfile(Profile* profile, 142 virtual void OpenNewWindowForProfile(Profile* profile,
141 Profile::CreateStatus status); 143 Profile::CreateStatus status);
142 144
145 // Opens a new signin dialog for |profile|.
146 virtual void OpenSigninDialogForProfile(Profile* profile);
147
143 // This callback is run after a new browser (but not the window) has been 148 // This callback is run after a new browser (but not the window) has been
144 // created for the new profile. 149 // created for the new profile.
145 void OnBrowserReadyCallback(Profile* profile, Profile::CreateStatus status); 150 void OnBrowserReadyCallback(Profile* profile, Profile::CreateStatus status);
146 151
147 // Updates the UI to show an error when creating a profile. 152 // Updates the UI to show an error when creating a profile.
148 void ShowProfileCreationError(Profile* profile, const base::string16& error); 153 void ShowProfileCreationError(Profile* profile, const base::string16& error);
149 154
150 // Records UMA histograms relevant to profile creation. 155 // Records UMA histograms relevant to profile creation.
151 void RecordProfileCreationMetrics(Profile::CreateStatus status); 156 void RecordProfileCreationMetrics(Profile::CreateStatus status);
152 157
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 255
251 content::NotificationRegistrar registrar_; 256 content::NotificationRegistrar registrar_;
252 257
253 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; 258 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_;
254 259
255 private: 260 private:
256 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); 261 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler);
257 }; 262 };
258 263
259 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ 264 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/signin_create_profile_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698