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

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

Issue 745613002: [cros] Cleanup: remove LoginUtils (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get rid of FakeChromeUserManager usage in ExistingUserController* tests Created 5 years, 10 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 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 <string> 9 #include <string>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 void set_owner_email(const std::string& owner_email) { 62 void set_owner_email(const std::string& owner_email) {
63 owner_email_ = owner_email; 63 owner_email_ = owner_email;
64 } 64 }
65 65
66 void set_multi_profile_user_controller( 66 void set_multi_profile_user_controller(
67 MultiProfileUserController* controller) { 67 MultiProfileUserController* controller) {
68 multi_profile_user_controller_ = controller; 68 multi_profile_user_controller_ = controller;
69 } 69 }
70 70
71 private: 71 private:
72 // Lazily creates default user flow.
73 UserFlow* GetDefaultUserFlow() const;
74
72 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_; 75 scoped_ptr<FakeSupervisedUserManager> supervised_user_manager_;
73 std::string owner_email_; 76 std::string owner_email_;
74 77
75 MultiProfileUserController* multi_profile_user_controller_; 78 MultiProfileUserController* multi_profile_user_controller_;
76 79
80 typedef std::map<std::string, UserFlow*> FlowMap;
81
82 // Lazy-initialized default flow.
83 mutable scoped_ptr<UserFlow> default_flow_;
84
85 // Specific flows by user e-mail.
86 // Keys should be canonicalized before access.
87 FlowMap specific_flows_;
88
77 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); 89 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager);
78 }; 90 };
79 91
80 } // namespace chromeos 92 } // namespace chromeos
81 93
82 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ 94 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698