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/fake_chrome_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
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 12 matching lines...) Expand all
23 23
24 // Fake chrome user manager with a barebones implementation. Users can be added 24 // Fake chrome user manager with a barebones implementation. Users can be added
25 // and set as logged in, and those users can be returned. 25 // and set as logged in, and those users can be returned.
26 class FakeChromeUserManager : public user_manager::FakeUserManager, 26 class FakeChromeUserManager : public user_manager::FakeUserManager,
27 public UserManagerInterface { 27 public UserManagerInterface {
28 public: 28 public:
29 FakeChromeUserManager(); 29 FakeChromeUserManager();
30 ~FakeChromeUserManager() override; 30 ~FakeChromeUserManager() override;
31 31
32 // Create and add a kiosk app user. 32 // Create and add a kiosk app user.
33 void AddKioskAppUser(const AccountId& kiosk_app_account_id); 33 user_manager::User* AddKioskAppUser(const AccountId& account_id);
34 34
35 // Create and add a public account user. 35 // Create and add a public account user.
36 const user_manager::User* AddPublicAccountUser(const AccountId& account_id); 36 const user_manager::User* AddPublicAccountUser(const AccountId& account_id);
37 37
38 // Calculates the user name hash and calls UserLoggedIn to login a user. 38 // Calculates the user name hash and calls UserLoggedIn to login a user.
39 void LoginUser(const AccountId& account_id); 39 void LoginUser(const AccountId& account_id);
40 40
41 // UserManager overrides. 41 // UserManager overrides.
42 user_manager::UserList GetUsersAllowedForMultiProfile() const override; 42 user_manager::UserList GetUsersAllowedForMultiProfile() const override;
43 43
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Specific flows by user e-mail. 114 // Specific flows by user e-mail.
115 // Keys should be canonicalized before access. 115 // Keys should be canonicalized before access.
116 FlowMap specific_flows_; 116 FlowMap specific_flows_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); 118 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager);
119 }; 119 };
120 120
121 } // namespace chromeos 121 } // namespace chromeos
122 122
123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ 123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698