• khmel@google.com's avatar
    arc: Fix shelf item icon flickering on app start. · f79adf2a
    khmel@google.com authored
    When app is pinned, icon image is loaded via controller using loader
    owner by chrome launcher controller. Once new ARC app window appears in
    the system, it's icon is loaded asynchronously. In this flow, default
    app icon is applied first and then, once real image is loaded final icon
    is set. Each update of ARC window icon is reflected on shelf. That
    means default app icon appear on the shelf for a moment and in most cases
    this is very noticeable.
    This CL prevents setting default app in favor of final app icon and
    default icon is set only as a fallback when final icon could not be
    loaded.
    
    TEST=Manual
    BUG=b:114246197
    
    Change-Id: I2de9e9d99b313f7538dce9dd732164335f32a42a
    Reviewed-on: https://chromium-review.googlesource.com/1212348
    Commit-Queue: Yury Khmel <khmel@google.com>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#589627}
    f79adf2a
arc_app_window.h 3.27 KB