Chromium Code Reviews
DescriptionMigrate add to homescreen data fetcher to use InstallableManager.
This CL stops the add to homescreen data fetcher from fetching
a manifest and icon itself, and instead defer that task to the
InstallableManager. This is particularly beneficial for PWAs, which may
have already run the InstallableManager to fetch the manifest and icon
to verify whether they are banner eligible. In this case, the add to
homescreen data fetcher no longer needs to IPC to the renderer process,
as the data it needs is already cached in InstallableManager.
This also paves the way for the WebAPK install flow to be triggered from
the add to homescreen dialog. A future CL will make the add to
homescreen data fetcher check whether a site is a PWA using the
InstallableManager - kicking off the WebAPK flow if so.
This CL also tidies up includes and code style in the data fetcher and
dialog helper.
BUG=628921
Committed: https://crrev.com/ed8b475808ee068d8d453b78a46fe1d8f63f5662
Cr-Commit-Position: refs/heads/master@{#411483}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Rebase #Patch Set 3 : More tidying #
Dependent Patchsets: Messages
Total messages: 27 (18 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||