• David Bienvenu's avatar
    desktop-pwas: Multi-profile support for pwa file registration. · e4b16bb5
    David Bienvenu authored
    When the same app is installed in multiple profiles, the open with
    context menu needs to distinguish between the different profiles.
    We do this by adding the profile name in parentheses after the app name,
    e.g., "foo app (Profile1)". This CL detects when registering and
    unregistering an app changes the app from being installed in
    multiple profiles or just a single profile, and updates the app name.
    
    This is similar to the way we badge/unbadge pinned taskbar icons when
    the user switches between having multiple profiles and
    having a single-profile.
    
    Bug: 960245
    Change-Id: I4c2a50c55cd8ab45be05eb023b162afc4f634cd0
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2023283
    Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
    Reviewed-by: default avatarAlexey Baskakov <loyso@chromium.org>
    Reviewed-by: default avatarGreg Thompson <grt@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#738802}
    e4b16bb5
shell_util_unittest.cc 44.4 KB