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

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

Issue 954033003: Kiosk mode: SetFirstLoginPrefs() should be called for kiosk sessions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. 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
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.cc ('k') | no next file » | 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_USER_MANAGER_BASE_H_ 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 const std::string& user_id) const override; 97 const std::string& user_id) const override;
98 void AddObserver(UserManager::Observer* obs) override; 98 void AddObserver(UserManager::Observer* obs) override;
99 void RemoveObserver(UserManager::Observer* obs) override; 99 void RemoveObserver(UserManager::Observer* obs) override;
100 void AddSessionStateObserver( 100 void AddSessionStateObserver(
101 UserManager::UserSessionStateObserver* obs) override; 101 UserManager::UserSessionStateObserver* obs) override;
102 void RemoveSessionStateObserver( 102 void RemoveSessionStateObserver(
103 UserManager::UserSessionStateObserver* obs) override; 103 UserManager::UserSessionStateObserver* obs) override;
104 void NotifyLocalStateChanged() override; 104 void NotifyLocalStateChanged() override;
105 void ChangeUserChildStatus(User* user, bool is_child) override; 105 void ChangeUserChildStatus(User* user, bool is_child) override;
106 106
107 virtual void SetIsCurrentUserNew(bool is_new);
108
107 // Helper function that copies users from |users_list| to |users_vector| and 109 // Helper function that copies users from |users_list| to |users_vector| and
108 // |users_set|. Duplicates and users already present in |existing_users| are 110 // |users_set|. Duplicates and users already present in |existing_users| are
109 // skipped. 111 // skipped.
110 static void ParseUserList(const base::ListValue& users_list, 112 static void ParseUserList(const base::ListValue& users_list,
111 const std::set<std::string>& existing_users, 113 const std::set<std::string>& existing_users,
112 std::vector<std::string>* users_vector, 114 std::vector<std::string>* users_vector,
113 std::set<std::string>* users_set); 115 std::set<std::string>* users_set);
114 116
115 protected: 117 protected:
116 // Adds |user| to users list, and adds it to front of LRU list. It is assumed 118 // Adds |user| to users list, and adds it to front of LRU list. It is assumed
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 // Indicates that a supervised user just logged in. 233 // Indicates that a supervised user just logged in.
232 virtual void SupervisedUserLoggedIn(const std::string& user_id) = 0; 234 virtual void SupervisedUserLoggedIn(const std::string& user_id) = 0;
233 235
234 // Getters/setters for private members. 236 // Getters/setters for private members.
235 237
236 virtual void SetCurrentUserIsOwner(bool is_current_user_owner); 238 virtual void SetCurrentUserIsOwner(bool is_current_user_owner);
237 239
238 virtual bool GetEphemeralUsersEnabled() const; 240 virtual bool GetEphemeralUsersEnabled() const;
239 virtual void SetEphemeralUsersEnabled(bool enabled); 241 virtual void SetEphemeralUsersEnabled(bool enabled);
240 242
241 virtual void SetIsCurrentUserNew(bool is_new);
242
243 virtual void SetOwnerEmail(std::string owner_user_id); 243 virtual void SetOwnerEmail(std::string owner_user_id);
244 244
245 virtual const std::string& GetPendingUserSwitchID() const; 245 virtual const std::string& GetPendingUserSwitchID() const;
246 virtual void SetPendingUserSwitchID(std::string user_id); 246 virtual void SetPendingUserSwitchID(std::string user_id);
247 247
248 // The logged-in user that is currently active in current session. 248 // The logged-in user that is currently active in current session.
249 // NULL until a user has logged in, then points to one 249 // NULL until a user has logged in, then points to one
250 // of the User instances in |users_|, the |guest_user_| instance or an 250 // of the User instances in |users_|, the |guest_user_| instance or an
251 // ephemeral user instance. 251 // ephemeral user instance.
252 User* active_user_; 252 User* active_user_;
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 scoped_refptr<base::TaskRunner> blocking_task_runner_; 379 scoped_refptr<base::TaskRunner> blocking_task_runner_;
380 380
381 base::WeakPtrFactory<UserManagerBase> weak_factory_; 381 base::WeakPtrFactory<UserManagerBase> weak_factory_;
382 382
383 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); 383 DISALLOW_COPY_AND_ASSIGN(UserManagerBase);
384 }; 384 };
385 385
386 } // namespace user_manager 386 } // namespace user_manager
387 387
388 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 388 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/session/user_session_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698