2592803: [Extensions] Use policy-enforced update URL in ManagementApi

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/2592803
This commit is contained in:
VerteDinde
2021-01-15 12:20:53 -08:00
parent 9c4d237048
commit 00f4041cc9
2 changed files with 9 additions and 0 deletions

View File

@@ -232,3 +232,10 @@ GURL ElectronManagementAPIDelegate::GetIconURL(
CHECK(icon_url.is_valid());
return icon_url;
}
GURL ElectronManagementAPIDelegate::GetEffectiveUpdateURL(
const extensions::Extension& extension,
content::BrowserContext* context) const {
// TODO(codebytere): we do not currently support ExtensionManagement.
return GURL::EmptyGURL();
}

View File

@@ -81,6 +81,8 @@ class ElectronManagementAPIDelegate : public extensions::ManagementAPIDelegate {
int icon_size,
ExtensionIconSet::MatchType match,
bool grayscale) const override;
GURL GetEffectiveUpdateURL(const extensions::Extension& extension,
content::BrowserContext* context) const override;
};
#endif // SHELL_BROWSER_EXTENSIONS_API_MANAGEMENT_ELECTRON_MANAGEMENT_API_DELEGATE_H_