OLD | NEW |
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 | 185 |
186 // Creates the supervised user with the given |supervised_user_id| if the user | 186 // Creates the supervised user with the given |supervised_user_id| if the user |
187 // doesn't already exist on the machine. | 187 // doesn't already exist on the machine. |
188 void DoCreateProfileIfPossible(const base::string16& name, | 188 void DoCreateProfileIfPossible(const base::string16& name, |
189 const std::string& icon_url, | 189 const std::string& icon_url, |
190 bool create_shortcut, | 190 bool create_shortcut, |
191 const std::string& supervised_user_id, | 191 const std::string& supervised_user_id, |
192 Profile* custodian_profile, | 192 Profile* custodian_profile, |
193 const base::DictionaryValue* dict); | 193 const base::DictionaryValue* dict); |
194 | 194 |
195 scoped_ptr<SupervisedUserRegistrationUtility> | 195 std::unique_ptr<SupervisedUserRegistrationUtility> |
196 supervised_user_registration_utility_; | 196 supervised_user_registration_utility_; |
197 #endif | 197 #endif |
198 | 198 |
199 // Returns true if profile has signed into chrome. | 199 // Returns true if profile has signed into chrome. |
200 bool IsAccountConnected(Profile* profile) const; | 200 bool IsAccountConnected(Profile* profile) const; |
201 // Returns true if profile has authentication error. | 201 // Returns true if profile has authentication error. |
202 bool HasAuthError(Profile* profile) const; | 202 bool HasAuthError(Profile* profile) const; |
203 | 203 |
204 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; | 204 base::WeakPtrFactory<SigninCreateProfileHandler> weak_ptr_factory_; |
205 | 205 |
206 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); | 206 DISALLOW_COPY_AND_ASSIGN(SigninCreateProfileHandler); |
207 }; | 207 }; |
208 | 208 |
209 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ | 209 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_SIGNIN_CREATE_PROFILE_HANDLER_H_ |
OLD | NEW |