Index: chrome/browser/policy/component_cloud_policy_updater.cc |
diff --git a/chrome/browser/policy/component_cloud_policy_updater.cc b/chrome/browser/policy/component_cloud_policy_updater.cc |
index 601b345d8de98ab4a4b8c7fcdea7dc476d57cb94..1ce3f275429949b72c86f12b543789851ead7ce5 100644 |
--- a/chrome/browser/policy/component_cloud_policy_updater.cc |
+++ b/chrome/browser/policy/component_cloud_policy_updater.cc |
@@ -351,8 +351,10 @@ void ComponentCloudPolicyUpdater::UpdateExternalPolicy( |
} |
// Maybe the data for this hash has already been downloaded and cached. |
- if (data.secure_hash() == store_->GetCachedHash(ns)) |
+ if (data.has_secure_hash() && |
+ data.secure_hash() == store_->GetCachedHash(ns)) { |
return; |
+ } |
// TODO(joaodasilva): implement the other two auth methods. |
if (data.download_auth_method() != em::ExternalPolicyData::NONE) |