DescriptionFetch Mandoline components from Google Storage as needed.
Proof-of-concept for fetching optional components.
Return LocalFetcher redirect URLs for missing components.
This uses NetworkFetcher to access Google Storage files:
https://pantheon.corp.google.com/storage/browser/mandoline/
For example, delete pdf_viewer.mojo locally, and run:
$ mandoline http://www.pdf995.com/samples/pdf.pdf --predictable-app-filenames
TODO: Integrate with Mandoline's component updater? crbug.com/479169
TODO: Integrate with planned Omaha fetcher and updater work.
TODO: Support fetching apps with resource files.
TODO: Handle broken URLs. (unavailable component files, etc.)
TODO: Avoid kPredictableAppFilenames switch? (need executable bit set)
BUG=479169
TEST=Mandoline can fetch the pdf_viewer as needed.
R=ben@chromium.org
Committed: https://crrev.com/d629d1b58c5d54b9827d9fc753a53c0d60851261
Cr-Commit-Position: refs/heads/master@{#360735}
Patch Set 1 #Patch Set 2 : Get the appropriate version and platform URL. #Patch Set 3 : Get the relative app path; cleanup. #Patch Set 4 : Cleanup #Patch Set 5 : Sync and rebase. #Patch Set 6 : Move //components/version_info to public_deps. #Patch Set 7 : Fix gyp build; restore non-public GN dep. #Patch Set 8 : Depend on more narrow version_info.gypi target to avoid ios gyp dep cycle. #Patch Set 9 : Use the new 'latest' version folder on Google Storage. #
Messages
Total messages: 36 (19 generated)
|