MacPWAs: Fix file handlers
In r750774, web_app::ShortcutInfo::file_handler_extensions was changed from stripping off the leading `.` to not stripping off the leading `.`. This broke the macOS implementation, because these values are listed directly in CFBundleTypeExtensions in the Info.plist. Fix this by stripping the leading `.` in a helper function, and updating the unit tests to verify this behavior. Bug: 1067368 Change-Id: I222fbd8a342cc1f13bc271bfe59a1aad8989b889 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2136470 Commit-Queue: ccameron <ccameron@chromium.org> Reviewed-by:Alexey Baskakov <loyso@chromium.org> Cr-Commit-Position: refs/heads/master@{#756581}
Showing
Please register or sign in to comment