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

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

Issue 2561023002: arc: ARC loading progress should not be shown when started from OOBE. (Closed)
Patch Set: small fix 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_FAKE_CHROME_USER_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 void set_bootstrap_manager(BootstrapManager* bootstrap_manager) { 177 void set_bootstrap_manager(BootstrapManager* bootstrap_manager) {
178 bootstrap_manager_ = bootstrap_manager; 178 bootstrap_manager_ = bootstrap_manager;
179 } 179 }
180 180
181 void set_multi_profile_user_controller( 181 void set_multi_profile_user_controller(
182 MultiProfileUserController* controller) { 182 MultiProfileUserController* controller) {
183 multi_profile_user_controller_ = controller; 183 multi_profile_user_controller_ = controller;
184 } 184 }
185 185
186 void set_current_user_new(bool new_user) { current_user_new_ = new_user; }
187
186 private: 188 private:
187 // Lazily creates default user flow. 189 // Lazily creates default user flow.
188 UserFlow* GetDefaultUserFlow() const; 190 UserFlow* GetDefaultUserFlow() const;
189 191
190 // Returns the active user. 192 // Returns the active user.
191 user_manager::User* GetActiveUserInternal() const; 193 user_manager::User* GetActiveUserInternal() const;
192 194
193 std::unique_ptr<FakeSupervisedUserManager> supervised_user_manager_; 195 std::unique_ptr<FakeSupervisedUserManager> supervised_user_manager_;
194 AccountId owner_account_id_ = EmptyAccountId(); 196 AccountId owner_account_id_ = EmptyAccountId();
195 bool fake_ephemeral_users_enabled_ = false; 197 bool fake_ephemeral_users_enabled_ = false;
198 bool current_user_new_ = false;
196 199
197 BootstrapManager* bootstrap_manager_ = nullptr; 200 BootstrapManager* bootstrap_manager_ = nullptr;
198 MultiProfileUserController* multi_profile_user_controller_ = nullptr; 201 MultiProfileUserController* multi_profile_user_controller_ = nullptr;
199 202
200 // If set this is the active user. If empty, the first created user is the 203 // If set this is the active user. If empty, the first created user is the
201 // active user. 204 // active user.
202 AccountId active_account_id_ = EmptyAccountId(); 205 AccountId active_account_id_ = EmptyAccountId();
203 206
204 // Lazy-initialized default flow. 207 // Lazy-initialized default flow.
205 mutable std::unique_ptr<UserFlow> default_flow_; 208 mutable std::unique_ptr<UserFlow> default_flow_;
206 209
207 using FlowMap = std::map<AccountId, UserFlow*>; 210 using FlowMap = std::map<AccountId, UserFlow*>;
208 211
209 // Specific flows by user e-mail. 212 // Specific flows by user e-mail.
210 // Keys should be canonicalized before access. 213 // Keys should be canonicalized before access.
211 FlowMap specific_flows_; 214 FlowMap specific_flows_;
212 215
213 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); 216 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager);
214 }; 217 };
215 218
216 } // namespace chromeos 219 } // namespace chromeos
217 220
218 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ 221 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698