WebApps: Add method for determining if file handling is available.
This is in preparation for the file handling origin trial, where file handling will be available on a per app basis. This CL makes no functional changes but instead changes the API used to check if file handling is enabled. Old Check: if (base::FeatureList::IsEnable(blink::features::kFileHandlingAPI)) New Check: if (file_handler_manager().IsFileHandlingAPIAvailable(app_id)) Currently, the implementation of |IsFileHandlingAPIAvailable| is simply the old check. In https://crrev.com/c/1940001, this will be changed to also be true if |app_id| has a valid FileHandling API origin trial token. Note: This also restricts file handling in extensions to extensions where from_bookmark() is true (this should have always been the case). Bug: 1028448 Change-Id: I525bb7bf03f052b79721fdc13fb154b34fa411a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2016688Reviewed-by:Giovanni Ortuño Urquidi <ortuno@chromium.org> Reviewed-by:
Sam McNally <sammc@chromium.org> Reviewed-by:
Michael Wasserman <msw@chromium.org> Commit-Queue: Jay Harris <harrisjay@chromium.org> Cr-Commit-Position: refs/heads/master@{#735753}
Showing
Please register or sign in to comment