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

Unified Diff: chrome/browser/policy/cloud_policy_data_store.cc

Issue 7810025: Pass user_affiliation request parameter on user cloud policy requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
Index: chrome/browser/policy/cloud_policy_data_store.cc
diff --git a/chrome/browser/policy/cloud_policy_data_store.cc b/chrome/browser/policy/cloud_policy_data_store.cc
index 13b0daf792b31762f31938c43d898369f53551ba..6a7c47c8c1ae55e13ec325736499d3c1be84a92e 100644
--- a/chrome/browser/policy/cloud_policy_data_store.cc
+++ b/chrome/browser/policy/cloud_policy_data_store.cc
@@ -83,7 +83,8 @@ CloudPolicyDataStore::CloudPolicyDataStore(
const std::string& policy_type,
const std::string& machine_model,
const std::string& machine_id)
- : policy_register_type_(policy_register_type),
+ : user_affiliation_(USER_AFFILIATION_NONE),
+ policy_register_type_(policy_register_type),
policy_type_(policy_type),
machine_model_(machine_model),
machine_id_(machine_id),
@@ -148,6 +149,11 @@ void CloudPolicyDataStore::set_user_name(const std::string& user_name) {
user_name_ = user_name;
}
+void CloudPolicyDataStore::set_user_affiliation(
+ UserAffiliation user_affiliation) {
+ user_affiliation_ = user_affiliation;
+}
+
const std::string& CloudPolicyDataStore::device_token() const {
return device_token_;
}
@@ -189,6 +195,11 @@ const std::string& CloudPolicyDataStore::user_name() const {
return user_name_;
}
+const CloudPolicyDataStore::UserAffiliation
+ CloudPolicyDataStore::user_affiliation() const {
+ return user_affiliation_;
+}
+
void CloudPolicyDataStore::AddObserver(
CloudPolicyDataStore::Observer* observer) {
observer_list_.AddObserver(observer);

Powered by Google App Engine
This is Rietveld 408576698