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

Unified Diff: chromeos/dbus/fake_session_manager_client.h

Issue 14761012: Updated SessionManagerClient to use the multi-profile user policy calls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added TODO Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_session_manager_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/fake_session_manager_client.h
diff --git a/chromeos/dbus/fake_session_manager_client.h b/chromeos/dbus/fake_session_manager_client.h
index 741f68c3ca3263d564218018fb46450551ea2932..88c048c7ad5251eef9f941897e3aeda168ad6cb9 100644
--- a/chromeos/dbus/fake_session_manager_client.h
+++ b/chromeos/dbus/fake_session_manager_client.h
@@ -39,15 +39,18 @@ class FakeSessionManagerClient : public chromeos::SessionManagerClient {
virtual void NotifyLockScreenDismissed() OVERRIDE;
virtual void RetrieveDevicePolicy(
const RetrievePolicyCallback& callback) OVERRIDE;
- virtual void RetrieveUserPolicy(
+ virtual void RetrievePolicyForUser(
+ const std::string& username,
const RetrievePolicyCallback& callback) OVERRIDE;
virtual void RetrieveDeviceLocalAccountPolicy(
const std::string& account_id,
const RetrievePolicyCallback& callback) OVERRIDE;
virtual void StoreDevicePolicy(const std::string& policy_blob,
const StorePolicyCallback& callback) OVERRIDE;
- virtual void StoreUserPolicy(const std::string& policy_blob,
- const StorePolicyCallback& callback) OVERRIDE;
+ virtual void StorePolicyForUser(const std::string& username,
+ const std::string& policy_blob,
+ const std::string& policy_key,
+ const StorePolicyCallback& callback) OVERRIDE;
virtual void StoreDeviceLocalAccountPolicy(
const std::string& account_id,
const std::string& policy_blob,
@@ -56,8 +59,9 @@ class FakeSessionManagerClient : public chromeos::SessionManagerClient {
const std::string& device_policy() const;
void set_device_policy(const std::string& policy_blob);
- const std::string& user_policy() const;
- void set_user_policy(const std::string& policy_blob);
+ const std::string& user_policy(const std::string& username) const;
+ void set_user_policy(const std::string& username,
+ const std::string& policy_blob);
const std::string& device_local_account_policy(
const std::string& account_id) const;
@@ -84,7 +88,7 @@ class FakeSessionManagerClient : public chromeos::SessionManagerClient {
private:
std::string device_policy_;
- std::string user_policy_;
+ std::map<std::string, std::string> user_policies_;
std::map<std::string, std::string> device_local_account_policy_;
ObserverList<Observer> observers_;
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_session_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698