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

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

Issue 2890843002: Policy implementation for encryptfs to ext4 migration strategy (Closed)
Patch Set: Fixed review comments Created 3 years, 6 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_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const user_manager::User* GetActiveUser() const override; 44 const user_manager::User* GetActiveUser() const override;
45 user_manager::User* GetActiveUser() override; 45 user_manager::User* GetActiveUser() override;
46 void SwitchActiveUser(const AccountId& account_id) override; 46 void SwitchActiveUser(const AccountId& account_id) override;
47 void SaveUserDisplayName(const AccountId& account_id, 47 void SaveUserDisplayName(const AccountId& account_id,
48 const base::string16& display_name) override; 48 const base::string16& display_name) override;
49 const AccountId& GetGuestAccountId() const override; 49 const AccountId& GetGuestAccountId() const override;
50 bool IsFirstExecAfterBoot() const override; 50 bool IsFirstExecAfterBoot() const override;
51 bool IsGuestAccountId(const AccountId& account_id) const override; 51 bool IsGuestAccountId(const AccountId& account_id) const override;
52 bool IsStubAccountId(const AccountId& account_id) const override; 52 bool IsStubAccountId(const AccountId& account_id) const override;
53 bool HasBrowserRestarted() const override; 53 bool HasBrowserRestarted() const override;
54 void SetLocalState(PrefService* pref_service);
54 55
55 // Not implemented. 56 // Not implemented.
56 void UpdateUserAccountData(const AccountId& account_id, 57 void UpdateUserAccountData(const AccountId& account_id,
57 const UserAccountData& account_data) override {} 58 const UserAccountData& account_data) override {}
58 void Shutdown() override {} 59 void Shutdown() override {}
59 const user_manager::UserList& GetLRULoggedInUsers() const override; 60 const user_manager::UserList& GetLRULoggedInUsers() const override;
60 user_manager::UserList GetUnlockUsers() const override; 61 user_manager::UserList GetUnlockUsers() const override;
61 const AccountId& GetOwnerAccountId() const override; 62 const AccountId& GetOwnerAccountId() const override;
62 void OnSessionStarted() override {} 63 void OnSessionStarted() override {}
63 void OnProfileInitialized(User* user) override; 64 void OnProfileInitialized(User* user) override;
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 private: 148 private:
148 // We use this internal function for const-correctness. 149 // We use this internal function for const-correctness.
149 user_manager::User* GetActiveUserInternal() const; 150 user_manager::User* GetActiveUserInternal() const;
150 151
151 // stub, always empty. 152 // stub, always empty.
152 AccountId owner_account_id_ = EmptyAccountId(); 153 AccountId owner_account_id_ = EmptyAccountId();
153 154
154 // stub. Always empty. 155 // stub. Always empty.
155 gfx::ImageSkia empty_image_; 156 gfx::ImageSkia empty_image_;
156 157
158 PrefService* pref_service_ = nullptr;
159
157 DISALLOW_COPY_AND_ASSIGN(FakeUserManager); 160 DISALLOW_COPY_AND_ASSIGN(FakeUserManager);
158 }; 161 };
159 162
160 } // namespace user_manager 163 } // namespace user_manager
161 164
162 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_ 165 #endif // COMPONENTS_USER_MANAGER_FAKE_USER_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698