-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Lacros] Make Lacros extensions accessible to Ash via App Service.
This CL adds the glue code needed to make Lacros extensions available to Ash. The trickiest part is determining that Lacros needs to use extension specific filtering code that previously was Ash only. After this CL, Lacros extensions with fileBrowserHandler will show up in ChromeOS File.app context menus for files. Icons also work. However, clicking on these entries currently do nothing; the code to run Lacros extensions and access files will be added in follow-up CLs. Details: * Add BrowserManager::Features::kExtensions (needed for |keep_alive_|). * Add apps::StandaloneBrowserExtensionAppsFactoryForExtension as counterpart to apps::StandaloneBrowserExtensionApps. * apps::StandaloneBrowserExtensionApps: * Rename RegisterChromeAppsCrosapiHost() to RegisterCrosapiHost(), to reflect generalized use by its 2 main instances. * For extensions: LoggedInStateChanged(): Assign |keep_alive_|. * Add Crosapi::BindExtensionPublisher() as counterpart to Crosapi::BindChromeAppPublisher(). * Make apps_util::CreateIntentFiltersForExtension() available to Lacros. * Also make apps_util::CreateExtensionIntentFilters() (for mojom, and deprecated) available, for consistency. * Transitive inclusions: * (anon)::CreateFileURLFilter(). * (anon)::URLPatternToFileSystemPattern(). * ChromeBrowserMainExtraPartsLacros: Add, instantiate, and initialize {|extensions_publisher_|, |extensions_controller_|}. * LacrosExtensionAppsController: * Add MakeForExtensions(). * For extensions: FinallyLaunch(): Add stub code main flow. * LacrosExtensionAppsPublisher::ProfileTracker: * ShouldShow(): Return false for extensions, so in MakeApp() these won't be added to {launcer, shelf, search}. * MakeApp(): * Force |handles_intents| to be true for extensions. * Call app_utils::CreateIntentFiltersForExtension() for extensions. * LacrosExtensionAppsPublisher: * Add MakeForExtensions(). * InitializeCrosapi(): Make crosapi version check and LacrosService binding that matches specialization to {Chrome Apps, Extensions}. Bug: 1275654 Change-Id: I25d9069308289f921edc94780173c9a45d2da6d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3557792 Reviewed-by: Erik Chen <erikchen@chromium.org> Reviewed-by: Nancy Wang <nancylingwang@chromium.org> Commit-Queue: Samuel Huang <huangs@chromium.org> Cr-Commit-Position: refs/heads/main@{#986972}
- Loading branch information
1 parent
786dcd5
commit 9308871
Showing
17 changed files
with
173 additions
and
28 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
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
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.