• Colin Blundell's avatar
    [WebLayer] Create and use ExternalNavigationParams · 05ac5803
    Colin Blundell authored
    This CL takes a prepapatory step to WebLayer sharing Chrome's
    ExternalNavigationHandler for launching external intents by creating
    and populating the ExternalNavigationParams struct that gets passed
    to the former class. I adapted the building of ExternalNavigationParams
    in //chrome's
    InterceptNavigationDelegateImpl.java:buildExternalNavigationParams() to
    //weblayer, leaving notes in the code where we might need to refine
    the calculation of some arguments over time.
    
    This CL also changes //weblayer's ExternalNavigationHandler to take in
    the params just so that the constructed object is used. There is no
    behavioral change.
    
    Bug: 1031465
    Change-Id: If7135fcbfc9d369f2683208fde12725925156736
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2100974Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
    Commit-Queue: Colin Blundell <blundell@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#751051}
    05ac5803
BUILD.gn 16.1 KB