-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
Toni Barzic
authored and
Toni Barzic
committed
Jul 27, 2017
1 parent
ade4b37
commit 7270d2d
Showing
22 changed files
with
1,505 additions
and
495 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.