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

Unified Diff: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc

Issue 2640843002: Chromad: Disable device attribute update after enrollment (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc
diff --git a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc
index fde8ecc5d2a0638c8cfdb8cd45b24285c915943c..a7495932aec90e8618c9f6dc81cd075517f223c7 100644
--- a/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc
+++ b/chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.cc
@@ -169,6 +169,12 @@ void EnterpriseEnrollmentHelperImpl::DoEnroll(const std::string& token) {
}
void EnterpriseEnrollmentHelperImpl::GetDeviceAttributeUpdatePermission() {
+ // Don't update device attributes for Active Directory management.
+ if (!enrollment_config_.management_realm.empty()) {
+ OnDeviceAttributeUpdatePermission(false);
+ return;
+ }
+
// TODO(pbond): remove this LOG once http://crbug.com/586961 is fixed.
achuithb 2017/01/18 19:19:24 Could you please remove this comment and log state
LOG(WARNING) << "Get device attribute update permission";
policy::BrowserPolicyConnectorChromeOS* connector =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698