• Timothy Loh's avatar
    Add install and last launch time fields to the Crostini registry · 8456ca90
    Timothy Loh authored
    This patch adds install_time and last_launch_time fields to the Crostini
    registry. These will be used in the app launcher's recently launched
    apps list, where currently Crostini apps do not appear.
    
    As we would also like the Terminal to appear in the recents list, this
    patch makes the registry support the Terminal, returning it in both
    GetRegistration and GetRegisteredAppIds. We don't need to keep track of
    Terminal install time as it is just a fallback for apps that haven't
    been launched. Internally, we only store the last launched time, so
    methods in the registry need to be careful they don't expect all pref
    entries will have all the standard fields.
    
    Bug: 821662, 836137
    Change-Id: I43f34434afe61bd80c165c3a42047b184f96fcbe
    Reviewed-on: https://chromium-review.googlesource.com/1027292
    Commit-Queue: Timothy Loh <timloh@chromium.org>
    Reviewed-by: default avatarNicholas Verne <nverne@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#553945}
    8456ca90
crostini_registry_service.cc 19.3 KB