Commit 529b3856 authored by Jimmy Hastings's avatar Jimmy Hastings Committed by Commit Bot

Allow whitelisted component extensions to call key challenge APIs

This affects chrome.enterprise.platformKeys.challengeMachineKey and
chrome.enterprise.platformKeys.challengeUserKey

Bug: crbug.com/854695
Change-Id: I7c1cd9a42c218b0266f297cf95cad9ca268944e6
Reviewed-on: https://chromium-review.googlesource.com/1108930Reviewed-by: default avatarYves Arrouye <drcrash@chromium.org>
Commit-Queue: Jimmy Hastings <jhastings@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569073}
parent 39ec4f7b
......@@ -147,6 +147,11 @@ bool EPKPChallengeKeyBase::IsExtensionWhitelisted() const {
// TODO(drcrash): Use a separate device-wide policy for the API.
return Manifest::IsPolicyLocation(extension_->location());
}
if (Manifest::IsComponentLocation(extension_->location())) {
// Note: For this to even be called, the component extension must also be
// whitelisted in chrome/common/extensions/api/_permission_features.json
return true;
}
const base::ListValue* list =
profile_->GetPrefs()->GetList(prefs::kAttestationExtensionWhitelist);
base::Value value(extension_->id());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment