• Alex Danilo's avatar
    [filesapp] Make HTML files prefer open in browser · 6de1a7b8
    Alex Danilo authored
    CL:2332079 changed default application opening logic to prefer an
    installed app over opening in the browser.
    
    Change this logic to detect an HTML file extension and bypass the
    installed application selection so that the browser remains the
    preferred opening target to avoid user surprises. (N.B. Users can still
    manually select the installed app as default for HTML).
    
    Bug: 1121396
    Tests: unit_tests --gtest_filter="*ChooseAndSetDefaultTask_FallbackHtmlTextApp"
    Change-Id: I1359be9d06b2ff27c7928c59ba68a92a66430584
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2391944
    Commit-Queue: Alex Danilo <adanilo@chromium.org>
    Reviewed-by: default avatarBugs Nash <bugsnash@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#804655}
    6de1a7b8
file_tasks.cc 36.6 KB