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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/signin/login_ui_test_utils.cc ('k') | 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