• Rob Schonberger's avatar
    Add result_type kPlayStoreReinstallApp and use to improve Reinstall UX. · 0d329767
    Rob Schonberger authored
    Adds a result_type, kPlayeStoreReinstallApp to both the ash/app_list
    code, and use this as the result_type of ArcAppReinstallAppResult.
    
    In SearchModel, add a method to filter with a lambda not just a list
    of app IDs not to show.
    
    In SearchResultTileItemListView, pull the list of SearchResult and use
    the new method in SearchModel to create a list of apps with the
    reinstall app as the last items.
    
    In Chip View, use the same filter to ensure that reinstall
    recommendations are not shown.
    
    In SearchResultTileItemListView and SearchResultTileItemView track the
    value of whether or not zero state is enabled, and make similar
    modifications to the UI as the play store changes do.
    
    Modify SearchResultTileItemListViewTest to test the new behavior, and
    parameterize that test by both flags.
    
    Bug: 911427
    Change-Id: If9d8509835300024d656c89cf127980ae831d4ab
    Reviewed-on: https://chromium-review.googlesource.com/c/1449963
    Commit-Queue: Rob Schonberger <robsc@chromium.org>
    Reviewed-by: default avatarJenny Zhang <jennyz@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#629841}
    0d329767
app_list.mojom 18.5 KB