• nancylingwang's avatar
    Generate the standard icons for windows. · 7a75987d
    nancylingwang authored
    When the adaptive icon feature (DD:go/appservice-adaptive-icon) is
    enabled, call AppServiceProxy's LoadIcon interface to generate the
    standard icons for windows . Those windows icons are shown on the mini
    window to switch between windows when click alt+tab. For some Chrome
    apps, those window icons could be used to set the Shelf icon.
    
    Modify the browser tests LauncherPlatformAppBrowserTest.SetIcon to
    increaset the callback count, because AppServiceProxy's load icon could
    update the window's icon. Also add the checking for the icon image.
    
    Modify the browser tests WebAppIconManagerBrowserTest.SingleIcon to
    check for the standard icon image.
    
    Tests:
    1. Manul tests
    2. LauncherPlatformAppBrowserTest.SetIcon is used to test the change for
    chrome_native_app_window_view*
    3. WebAppIconManagerBrowserTest.SingleIcon is used to test the change
    for web_app_browser_controller.*
    4. HostedAppTest.LoadIcon is used to test the change for
    hosted_app_browser_controller.*
    
    BUG=1113576
    
    Change-Id: Icf3e6ad2cbf3d0c01e0f8e2fc29e5742c1cb59ed
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2344428
    Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#797108}
    7a75987d
app_browser_controller.cc 19.3 KB