-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions] Install a warning when invalid action commands are set and
do not set them on CommandsInfo. Before this change it was possible for multiple action commands to be set on CommandInfo. This caused multiple entries for action commands in chrome://extensions/shortcuts unexpectedly. Now we only set the action command that matches the manifest's action type. If an action command is specified, but incorrect for the manifest's action type we set an install warning to inform the user. Also enhance the CommandManifestSimple test to validate this new reality. Also fix ExtensionInfoGeneratorUnitTest.ExtensionActionCommands since it was not specifying manifest version which made the action type unavailable. Bug: 1353210 Change-Id: Ic538565c1eebe9c726b3156bbccdc5eba6375291 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3961712 Auto-Submit: Justin Lulejian <jlulejian@chromium.org> Commit-Queue: Justin Lulejian <jlulejian@chromium.org> Reviewed-by: Devlin Cronin <rdevlin.cronin@chromium.org> Cr-Commit-Position: refs/heads/main@{#1070614}
- Loading branch information
Justin Lulejian
authored and
Chromium LUCI CQ
committed
Nov 12, 2022
1 parent
9ae1b09
commit a90bc8d
Showing
15 changed files
with
393 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.