Introduce lock screen app manager interface

Desktop / Chromium - tbarzic [chromium.org] - 21 June 2017 15:44 EDT

The manager will be responsible for managing the lock screen note taking app (if one is selected) in the profile used for lock screen apps. StateController starts the manager when the user session is locked and stops it when user session is unlocked. Additionally, StateController will use lock screen AppManager to determine whether a lock screen enabled note taking app is set up, and to dispatch launch event to the app in question.

Currently, the app manager implementation is stubbed out - it will be added in subsequent patches.

BUG=715781

Review-Url: https://codereview.chromium.org/2949943003 Cr-Commit-Position: refs/heads/master@{#481279}

1d75a1d Introduce lock screen app manager interface
chrome/browser/chromeos/BUILD.gn | 3 +
.../chromeos/lock_screen_apps/app_manager.h | 62 ++++
.../chromeos/lock_screen_apps/app_manager_impl.cc | 53 +++
.../chromeos/lock_screen_apps/app_manager_impl.h | 42 +++
.../chromeos/lock_screen_apps/state_controller.cc | 65 +++-
.../chromeos/lock_screen_apps/state_controller.h | 28 +-
.../lock_screen_apps/state_controller_unittest.cc | 411 ++++++++++++++++++++-
.../login/session/chrome_session_manager.cc | 3 +
.../chromeos/login/session/user_session_manager.cc | 3 +
chrome/browser/chromeos/note_taking_helper.cc | 39 ++
chrome/browser/chromeos/note_taking_helper.h | 5 +
.../chromeos/note_taking_helper_unittest.cc | 41 ++
12 files changed, 739 insertions(+), 16 deletions(-)

Upstream: git.chromium.org


  • Share