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

Side by Side Diff: chrome/browser/chromeos/login/users/mock_user_manager.h

Issue 1870793002: Convert //chrome/browser/chromeos 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 void AddUser(const AccountId& account_id); 161 void AddUser(const AccountId& account_id);
162 162
163 // The same as AddUser, but allows specifying affiliation with the domain, 163 // The same as AddUser, but allows specifying affiliation with the domain,
164 // that owns the device. 164 // that owns the device.
165 void AddUserWithAffiliation(const AccountId& account_id, bool is_affiliated); 165 void AddUserWithAffiliation(const AccountId& account_id, bool is_affiliated);
166 166
167 // Clears the user list and the active user. Users previously created by this 167 // Clears the user list and the active user. Users previously created by this
168 // MockUserManager become invalid. 168 // MockUserManager become invalid.
169 void ClearUserList(); 169 void ClearUserList();
170 170
171 scoped_ptr<UserFlow> user_flow_; 171 std::unique_ptr<UserFlow> user_flow_;
172 scoped_ptr<MockUserImageManager> user_image_manager_; 172 std::unique_ptr<MockUserImageManager> user_image_manager_;
173 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_; 173 std::unique_ptr<FakeSupervisedUserManager> supervised_user_manager_;
174 user_manager::UserList user_list_; 174 user_manager::UserList user_list_;
175 // TODO (alemate): remove temporary_owner_account_id_ as soon as 175 // TODO (alemate): remove temporary_owner_account_id_ as soon as
176 // User::GetAccountId will 176 // User::GetAccountId will
177 // return constant reference. crbug.com/546863 177 // return constant reference. crbug.com/546863
178 mutable AccountId temporary_owner_account_id_ = EmptyAccountId(); 178 mutable AccountId temporary_owner_account_id_ = EmptyAccountId();
179 }; 179 };
180 180
181 } // namespace chromeos 181 } // namespace chromeos
182 182
183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_ 183 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_MOCK_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698