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

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

Issue 637533002: Added calls for deferred supervised user status change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual bool IsSessionStarted() const override; 96 virtual bool IsSessionStarted() const override;
97 virtual bool IsUserNonCryptohomeDataEphemeral( 97 virtual bool IsUserNonCryptohomeDataEphemeral(
98 const std::string& user_id) const override; 98 const std::string& user_id) const override;
99 virtual void AddObserver(UserManager::Observer* obs) override; 99 virtual void AddObserver(UserManager::Observer* obs) override;
100 virtual void RemoveObserver(UserManager::Observer* obs) override; 100 virtual void RemoveObserver(UserManager::Observer* obs) override;
101 virtual void AddSessionStateObserver( 101 virtual void AddSessionStateObserver(
102 UserManager::UserSessionStateObserver* obs) override; 102 UserManager::UserSessionStateObserver* obs) override;
103 virtual void RemoveSessionStateObserver( 103 virtual void RemoveSessionStateObserver(
104 UserManager::UserSessionStateObserver* obs) override; 104 UserManager::UserSessionStateObserver* obs) override;
105 virtual void NotifyLocalStateChanged() override; 105 virtual void NotifyLocalStateChanged() override;
106 virtual void ForceUpdateState() override; 106 virtual void ChangeUserSupervisedStatus(User* user, bool is_supervised)
107 override;
107 108
108 // 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
109 // |users_set|. Duplicates and users already present in |existing_users| are 110 // |users_set|. Duplicates and users already present in |existing_users| are
110 // skipped. 111 // skipped.
111 static void ParseUserList(const base::ListValue& users_list, 112 static void ParseUserList(const base::ListValue& users_list,
112 const std::set<std::string>& existing_users, 113 const std::set<std::string>& existing_users,
113 std::vector<std::string>* users_vector, 114 std::vector<std::string>* users_vector,
114 std::set<std::string>* users_set); 115 std::set<std::string>* users_set);
115 116
116 protected: 117 protected:
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 scoped_refptr<base::TaskRunner> blocking_task_runner_; 384 scoped_refptr<base::TaskRunner> blocking_task_runner_;
384 385
385 base::WeakPtrFactory<UserManagerBase> weak_factory_; 386 base::WeakPtrFactory<UserManagerBase> weak_factory_;
386 387
387 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); 388 DISALLOW_COPY_AND_ASSIGN(UserManagerBase);
388 }; 389 };
389 390
390 } // namespace user_manager 391 } // namespace user_manager
391 392
392 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ 393 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698