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

Unified Diff: chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc

Issue 2534433002: Mop up incorrect uses of IsEnterpriseManaged() (Closed)
Patch Set: Address Achuith' comments Created 4 years, 1 month 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/chromeos/policy/enrollment_handler_chromeos.cc
diff --git a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
index 991bec4aa176a45880e0f94297ea4c3d9b797a3d..657a225f2401e5c40c13c6c0e6964fb2c76095eb 100644
--- a/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
+++ b/chrome/browser/chromeos/policy/enrollment_handler_chromeos.cc
@@ -170,9 +170,10 @@ void EnrollmentHandlerChromeOS::OnPolicyFetched(CloudPolicyClient* client) {
CloudPolicyValidatorBase::TIMESTAMP_FULLY_VALIDATED);
// If this is re-enrollment, make sure that the new policy matches the
- // previously-enrolled domain.
+ // previously-enrolled domain. (Currently only implemented for cloud
+ // management.)
std::string domain;
- if (install_attributes_->IsEnterpriseManaged()) {
+ if (install_attributes_->IsCloudManaged()) {
domain = install_attributes_->GetDomain();
validator->ValidateDomain(domain);
}

Powered by Google App Engine
This is Rietveld 408576698