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

Side by Side Diff: components/user_manager/fake_user_manager.h

Issue 1865133002: kiosk: Fix kiosk session restart (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix nits 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
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/user_manager/fake_user_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 6 #define COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 bool IsValidDefaultUserImageId(int image_index) const override; 120 bool IsValidDefaultUserImageId(int image_index) const override;
121 121
122 // UserManagerBase overrides: 122 // UserManagerBase overrides:
123 bool AreEphemeralUsersEnabled() const override; 123 bool AreEphemeralUsersEnabled() const override;
124 const std::string& GetApplicationLocale() const override; 124 const std::string& GetApplicationLocale() const override;
125 PrefService* GetLocalState() const override; 125 PrefService* GetLocalState() const override;
126 void HandleUserOAuthTokenStatusChange( 126 void HandleUserOAuthTokenStatusChange(
127 const AccountId& account_id, 127 const AccountId& account_id,
128 user_manager::User::OAuthTokenStatus status) const override {} 128 user_manager::User::OAuthTokenStatus status) const override {}
129 bool IsEnterpriseManaged() const override; 129 bool IsEnterpriseManaged() const override;
130 void LoadPublicAccounts(std::set<AccountId>* public_sessions_set) override {} 130 void LoadDeviceLocalAccounts(
131 std::set<AccountId>* device_local_accounts_set) override {}
131 void PerformPreUserListLoadingActions() override {} 132 void PerformPreUserListLoadingActions() override {}
132 void PerformPostUserListLoadingActions() override {} 133 void PerformPostUserListLoadingActions() override {}
133 void PerformPostUserLoggedInActions(bool browser_restart) override {} 134 void PerformPostUserLoggedInActions(bool browser_restart) override {}
134 bool IsDemoApp(const AccountId& account_id) const override; 135 bool IsDemoApp(const AccountId& account_id) const override;
135 bool IsKioskApp(const AccountId& account_id) const override; 136 bool IsDeviceLocalAccountMarkedForRemoval(
136 bool IsPublicAccountMarkedForRemoval(
137 const AccountId& account_id) const override; 137 const AccountId& account_id) const override;
138 void DemoAccountLoggedIn() override {} 138 void DemoAccountLoggedIn() override {}
139 void KioskAppLoggedIn(const AccountId& kiosk_app_account_id) override {} 139 void KioskAppLoggedIn(user_manager::User* user) override {}
140 void PublicAccountUserLoggedIn(user_manager::User* user) override {} 140 void PublicAccountUserLoggedIn(user_manager::User* user) override {}
141 void SupervisedUserLoggedIn(const AccountId& account_id) override {} 141 void SupervisedUserLoggedIn(const AccountId& account_id) override {}
142 void OnUserRemoved(const AccountId& account_id) override {} 142 void OnUserRemoved(const AccountId& account_id) override {}
143 143
144 protected: 144 protected:
145 user_manager::User* primary_user_; 145 user_manager::User* primary_user_;
146 146
147 // If set this is the active user. If empty, the first created user is the 147 // If set this is the active user. If empty, the first created user is the
148 // active user. 148 // active user.
149 AccountId active_account_id_ = EmptyAccountId(); 149 AccountId active_account_id_ = EmptyAccountId();
150 150
151 private: 151 private:
152 // We use this internal function for const-correctness. 152 // We use this internal function for const-correctness.
153 user_manager::User* GetActiveUserInternal() const; 153 user_manager::User* GetActiveUserInternal() const;
154 154
155 // stub, always empty. 155 // stub, always empty.
156 AccountId owner_account_id_ = EmptyAccountId(); 156 AccountId owner_account_id_ = EmptyAccountId();
157 157
158 // stub. Always empty. 158 // stub. Always empty.
159 gfx::ImageSkia empty_image_; 159 gfx::ImageSkia empty_image_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 161 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
162 }; 162 };
163 163
164 } // namespace user_manager 164 } // namespace user_manager
165 165
166 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 166 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | components/user_manager/fake_user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698