
Adds the ExtensionTelemetryServiceVerdictHandler class to the ExtensionService. This class is used by the ExtensionTelemetryService to process malware verdicts for offstore extensions received from the Extension Telemetry server. The Handler performs action based on the verdict: - For malware verdict, the extension is unloaded and assigned a malware blocklist state. - For not-blocklisted/unknown verdict, the extension is reloaded and its malware blocklist state is removed. A follow-on CL will implement the code where the ExtensionService will call this handler to process the Extension Telemetry server's verdicts. Bug: 1466149 Change-Id: I0e41e8eca439094b282a698c9c831b6d5e92f0e7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4712670 Reviewed-by: Anunoy Ghosh <anunoy@chromium.org> Reviewed-by: David Bertoni <dbertoni@chromium.org> Commit-Queue: Richard Chen <richche@google.com> Cr-Commit-Position: refs/heads/main@{#1181715}
This will become a reusable extensions module. It implements the core parts of Chrome's extension system, and can be used with any host of the content module.
Some extensions code that is not Chrome-specific still lives in //chrome/browser/extensions and will be moved here.
Technical Documentation: