• Wei Lee's avatar
    [CCA]: Cancel intent on Chrome for SWA version · 7a226412
    Wei Lee authored
    Originally, we cancel intent in window unload listener when closing CCA.
    However, the the callback of the cancel() method is triggered, the
    connection between CCA and Chrome might already be tore down.
    
    This CL moves the logic to Chrome for SWA version. For platform app
    version, it still cancels the intent in background page.
    
    Bug: b/172337144
    Test: tast run [DUT] camera.CCAUIIntent.swa
    
    Change-Id: I8362242ad4990aeda947061f756bf35ecf8bf736
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2573261
    Commit-Queue: Wei Lee <wtlee@chromium.org>
    Reviewed-by: default avatarShik Chen <shik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#834602}
    7a226412
camera_app_ui.cc 9.76 KB