[filesapp] Refactor metadata Shared Worker code for files SWA
The files app front-end code creates a metadata Shared Worker. Provide a helper routine to do that and document it. Allow the routine to work if window.isSWA is defined [1]. [1] window.isSWA is not defined today, so no change in behavior. Bug: 1113981 Change-Id: Ib42ccadec1ee853758175ff018322954fd42c27c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2526666 Commit-Queue: Noel Gordon <noel@chromium.org> Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Auto-Submit: Noel Gordon <noel@chromium.org> Reviewed-by:Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#825655}
Showing
Please register or sign in to comment