Index: components/policy/core/common/cloud/cloud_policy_manager.cc |
diff --git a/components/policy/core/common/cloud/cloud_policy_manager.cc b/components/policy/core/common/cloud/cloud_policy_manager.cc |
index b68d97dfbe88a272aba78903eaf66184074b64f0..4d7380c62fd456f167e437ba05bdb2ed62910a74 100644 |
--- a/components/policy/core/common/cloud/cloud_policy_manager.cc |
+++ b/components/policy/core/common/cloud/cloud_policy_manager.cc |
@@ -114,8 +114,8 @@ void CloudPolicyManager::CreateComponentCloudPolicyService( |
// Called at most once. |
DCHECK(!component_policy_service_); |
- if (!CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableComponentCloudPolicy) || |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kDisableComponentCloudPolicy) || |
policy_cache_path.empty()) { |
return; |
} |