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

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

Issue 2642793002: Don't start device cloud policy connection after Chromad 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/policy/device_cloud_policy_initializer.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc b/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc
index 0d9495cae772967d26d78e151c86dc28cfd86059..d4fa52990c6d92427bda3cf14cb6a521ea66fccc 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_initializer.cc
@@ -279,8 +279,10 @@ void DeviceCloudPolicyInitializer::TryToCreateClient() {
void DeviceCloudPolicyInitializer::StartConnection(
std::unique_ptr<CloudPolicyClient> client) {
- if (!manager_->core()->service())
+ if (!manager_->core()->service() &&
+ !install_attributes_->IsActiveDirectoryManaged()) {
emaxx 2017/01/18 15:33:56 I think that it would be clearer if StartConnectio
Thiemo Nagel 2017/01/18 17:27:04 Done.
manager_->StartConnection(std::move(client), install_attributes_);
+ }
}
bool DeviceCloudPolicyInitializer::GetMachineFlag(const std::string& key,
« 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