You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update stylus settings for lock screen note taking
Fixes a number of issues with stylus settings for note taking on lock
screen:
* Provide a NoteTakingHelper observer interface called when the
preferred app changes (or when it's lock screen status changes)
* Settings UI can use this to update itself when the preferred
app changes.
* Switch lock_screen_apps::AppManagerImpl to observe this event
for preferred app changes (instead of observing note taking
pref directly)
* Introduces kNoteTakingAppsAllowedOnLockScreen pref, that will be
used by a user policy to whitelist apps available on the lock
screen (to be added in dependent patch)
* Disable lock screen support for note taking apps in non-primary
profiles (the profile that supports lock screen use case is set
by lock_screen_apps::StateController during its initialization).
* Redo settings UI for enabling apps on the lock screen so its
state (whether it's disabled, the policy indicator) does not
depend on prefs directly, instead derive the state from the
note taking app's NoteAppInfo (in particular lockScreenSupport
property)
While here, did some cleanup in test code:
* Provided utility methods to NoteTakingHelper unit tests to
reduce code duplication:
* Method to create/install lock screen enabled note taking app
* Methods for verifying preferred app and available apps info
* In stylus device page browser tests, made fake browser proxy
smarter, so test don't have to "manually" trigger note taking app
changes
[email protected]
(cherry picked from commit e4a5c06)
Bug: 741940
Bug: 741053
Bug: 746116
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I5e2ee138df620d3832a8ad0d1b4d0db285fba0da
Reviewed-on: https://chromium-review.googlesource.com/572842
Commit-Queue: Toni Barzic <[email protected]>
Reviewed-by: Jacob Dufault <[email protected]>
Reviewed-by: Steven Bennetts <[email protected]>
Cr-Original-Commit-Position: refs/heads/master@{#489142}
Reviewed-on: https://chromium-review.googlesource.com/588341
Reviewed-by: Toni Barzic <[email protected]>
Cr-Commit-Position: refs/branch-heads/3163@{#72}
Cr-Branched-From: ff259ba-refs/heads/master@{#488528}
0 commit comments