• Michael Giuffrida's avatar
    Unpin some policy-pinned apps in Demo Mode when offline · 8d28b7e1
    Michael Giuffrida authored
    Devices in Demo Mode are enrolled into the cros-demo-mode.com domain,
    which uses enterprise policy to set the list of force-installed apps
    and which of those apps are force-pinned to the shelf. This lets us
    choose which first and third party apps to feature in the demo.
    
    A few demo apps only work online. When a device in Demo Mode is
    offline, we don't want to feature those apps, but they're
    unconditionally force-pinned by policy.
    
    This CL updates the shelf's pinned policy pref handling to ignore
    certain apps pinned by policy when the device is in Demo Mode and
    offline. The user can still pin and unpin those apps themselves.
    
    Bug: 870846
    Change-Id: Ie15ea89f77fd5ed6a789614a83c39bb2aee286d2
    Reviewed-on: https://chromium-review.googlesource.com/1179318
    Commit-Queue: Michael Giuffrida <michaelpg@chromium.org>
    Reviewed-by: default avatarSteven Bennetts <stevenjb@chromium.org>
    Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#586015}
    8d28b7e1
chrome_launcher_prefs.cc 18.3 KB