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

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

Issue 7785032: Revert 98987 - 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
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.h ('k') | chrome/browser/policy/cloud_policy_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/browser_policy_connector.cc
===================================================================
--- chrome/browser/policy/browser_policy_connector.cc (revision 98988)
+++ chrome/browser/policy/browser_policy_connector.cc (working copy)
@@ -213,8 +213,6 @@
user_policy_token_cache_->Load();
user_data_store_->set_user_name(user_name);
- user_data_store_->set_user_affiliation(GetUserAffiliation(user_name));
-
if (token_service_ &&
token_service_->HasTokenForService(
GaiaConstants::kDeviceManagementService)) {
@@ -339,21 +337,6 @@
#endif
}
-CloudPolicyDataStore::UserAffiliation
- BrowserPolicyConnector::GetUserAffiliation(const std::string& user_name) {
-#if defined(OS_CHROMEOS)
- if (install_attributes_.get()) {
- size_t pos = user_name.find('@');
- if (pos != std::string::npos &&
- user_name.substr(pos + 1) == install_attributes_->GetDomain()) {
- return CloudPolicyDataStore::USER_AFFILIATION_MANAGED;
- }
- }
-#endif
-
- return CloudPolicyDataStore::USER_AFFILIATION_NONE;
-}
-
// static
BrowserPolicyConnector* BrowserPolicyConnector::CreateForTests() {
const ConfigurationPolicyProvider::PolicyDefinitionList*
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.h ('k') | chrome/browser/policy/cloud_policy_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698