• nancy's avatar
    Update UI Shelf to use AppService to verify app_id. · a2597745
    nancy authored
    For Crostini, Extension, built-in apps, the AppService is used to
    valid the app id. For ARC apps, ArcAppListPrefs is used, as ARC apps
    have some very special cases, e.g. PlayStore. ARC tests also assume
    synchronous behaviour, and will need more refactoring so the AppService
    can be used.
    
    Related unit tests has been fixed. Extension apps in test cases use
    OnExtensionLoaded to add extension apps, so set the extension name
    so that we can use AppService to dump the apps name.
    
    BUG=1002351
    
    Change-Id: Ia7f589de82ca226eb05dd1706ab95229699d6fdb
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1803015
    Commit-Queue: Nancy Wang <nancylingwang@chromium.org>
    Reviewed-by: default avatarDominick Ng <dominickn@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#697525}
    a2597745
extension_apps.cc 26.6 KB