Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(198)

Issue 2902293002: Introduce lock screen app manager (Closed)

Created:
3 years, 7 months ago by tbarzic
Modified:
3 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, alemate+watch_chromium.org, tfarina, achuith+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduce lock screen app manager Adds default lock screen app manager implementation. The app manager, when started, checks if a lock screen enabled note taking app is set, and if so, loads it to the profile used to run apps on the lock screen. When stopped, app manager will remove (and uninstall) the app from the profile. The app is installed and loaded to the lock screen profile as follows: * for unpacked apps - the app is loaded from the (original) unpacked app location * for others - the app resources are copied from the original, user profile to the lock screen app profile's extension install directory and loaded from the copied location The app manager observes the note taking app state in the user profile and updates lock screen app's profile accordingly. BUG=715781 Review-Url: https://codereview.chromium.org/2902293002 Cr-Commit-Position: refs/heads/master@{#484815} Committed: https://chromium.googlesource.com/chromium/src/+/c577bdc5b338dd58d27c8aeec32351263a47ad61

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 8

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 20

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : . #

Patch Set 13 : rebase #

Patch Set 14 : . #

Total comments: 21

Patch Set 15 : . #

Patch Set 16 : . #

Patch Set 17 : . #

Patch Set 18 : unpacked apps only #

Patch Set 19 : rebase #

Patch Set 20 : Copying non-unpacked apps #

Patch Set 21 : . #

Patch Set 22 : . #

Patch Set 23 : . #

Patch Set 24 : rebase #

Total comments: 14

Patch Set 25 : . #

Patch Set 26 : . #

Total comments: 2

Patch Set 27 : fix comments #

Patch Set 28 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1378 lines, -6 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +81 lines, -1 line 0 comments Download
M chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +330 lines, -5 lines 0 comments Download
A chrome/browser/chromeos/lock_screen_apps/app_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +966 lines, -0 lines 0 comments Download

Messages

Total messages: 72 (29 generated)
tbarzic
jdufault - primarily for note_taking_helper xiyuan - chrome/browser/chromeos rdevlin.cronin - app_manager_impl.cc (as it adds a ...
3 years, 7 months ago (2017-05-25 19:06:12 UTC) #2
jdufault
https://codereview.chromium.org/2902293002/diff/80001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/80001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode81 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:81: UnloadLockApp(lock_screen_app_id_); what if state_ == State::kNotInitialized? https://codereview.chromium.org/2902293002/diff/80001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.h ...
3 years, 7 months ago (2017-05-26 19:15:53 UTC) #3
tbarzic
https://codereview.chromium.org/2902293002/diff/80001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/80001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode81 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:81: UnloadLockApp(lock_screen_app_id_); On 2017/05/26 19:15:52, jdufault wrote: > what if ...
3 years, 6 months ago (2017-05-26 19:34:14 UTC) #4
xiyuan
https://codereview.chromium.org/2902293002/diff/120001/chrome/browser/chromeos/lock_screen_apps/app_manager.h File chrome/browser/chromeos/lock_screen_apps/app_manager.h (right): https://codereview.chromium.org/2902293002/diff/120001/chrome/browser/chromeos/lock_screen_apps/app_manager.h#newcode44 chrome/browser/chromeos/lock_screen_apps/app_manager.h:44: virtual void Start(Observer* observer) = 0; Prefer to use ...
3 years, 6 months ago (2017-05-26 22:44:53 UTC) #5
tbarzic
https://codereview.chromium.org/2902293002/diff/120001/chrome/browser/chromeos/lock_screen_apps/app_manager.h File chrome/browser/chromeos/lock_screen_apps/app_manager.h (right): https://codereview.chromium.org/2902293002/diff/120001/chrome/browser/chromeos/lock_screen_apps/app_manager.h#newcode44 chrome/browser/chromeos/lock_screen_apps/app_manager.h:44: virtual void Start(Observer* observer) = 0; On 2017/05/26 22:44:52, ...
3 years, 6 months ago (2017-05-27 00:48:36 UTC) #6
Devlin
(focusing on https://codereview.chromium.org/2892403002 before this one)
3 years, 6 months ago (2017-05-27 02:03:02 UTC) #7
xiyuan
lgtm
3 years, 6 months ago (2017-05-30 16:52:14 UTC) #8
Devlin
https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode39 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:39: DCHECK_NE(primary_profile, lock_screen_profile); Is there any defined relation between primary ...
3 years, 6 months ago (2017-06-05 16:09:35 UTC) #17
tbarzic
https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode39 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:39: DCHECK_NE(primary_profile, lock_screen_profile); On 2017/06/05 16:09:35, Devlin wrote: > Is ...
3 years, 6 months ago (2017-06-06 01:54:55 UTC) #18
tbarzic
ping. Can I please get some traction on this?
3 years, 6 months ago (2017-06-09 17:11:26 UTC) #19
Devlin
This looks fine except for the weirdness in installation/uninstallation. https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode194 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:194: ...
3 years, 6 months ago (2017-06-09 18:18:41 UTC) #20
tbarzic
https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode194 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:194: // copying and installing the app to the target ...
3 years, 6 months ago (2017-06-09 19:01:45 UTC) #21
Devlin
https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode194 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:194: // copying and installing the app to the target ...
3 years, 6 months ago (2017-06-12 18:31:45 UTC) #23
tbarzic
This doesn't really give lock screen profile access to the user profile - lock screen ...
3 years, 6 months ago (2017-06-12 22:11:49 UTC) #25
Devlin
On 2017/06/12 22:11:49, tbarzic wrote: > This doesn't really give lock screen profile access to ...
3 years, 6 months ago (2017-06-13 20:54:42 UTC) #26
rkc
https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode194 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:194: // copying and installing the app to the target ...
3 years, 6 months ago (2017-06-13 21:18:17 UTC) #27
Greg K
On 2017/06/13 21:18:17, rkc wrote: > https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc > File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): > > https://codereview.chromium.org/2902293002/diff/260001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode194 > ...
3 years, 6 months ago (2017-06-13 22:25:57 UTC) #30
Greg K
On 2017/06/13 22:25:57, Greg K wrote: > On 2017/06/13 21:18:17, rkc wrote: > > > ...
3 years, 6 months ago (2017-06-14 20:18:02 UTC) #31
tbarzic
On 2017/06/14 20:18:02, Greg K wrote: > On 2017/06/13 22:25:57, Greg K wrote: > > ...
3 years, 6 months ago (2017-06-14 20:25:48 UTC) #32
Devlin
On 2017/06/14 20:25:48, tbarzic wrote: > There might not be a crx present (as it ...
3 years, 6 months ago (2017-06-15 17:49:50 UTC) #33
tbarzic
On 2017/06/15 17:49:50, Devlin wrote: > On 2017/06/14 20:25:48, tbarzic wrote: > > There might ...
3 years, 6 months ago (2017-06-15 19:52:41 UTC) #34
Devlin
On 2017/06/15 19:52:41, tbarzic wrote: > On 2017/06/15 17:49:50, Devlin wrote: > > On 2017/06/14 ...
3 years, 6 months ago (2017-06-16 15:21:56 UTC) #35
tbarzic
On 2017/06/16 15:21:56, Devlin wrote: > On 2017/06/15 19:52:41, tbarzic wrote: > > On 2017/06/15 ...
3 years, 6 months ago (2017-06-19 03:54:06 UTC) #36
tbarzic
jorgelo, kerrnel; ping
3 years, 6 months ago (2017-06-22 19:00:11 UTC) #38
Jorge Lucangeli Obes
On 2017/06/22 19:00:11, tbarzic wrote: > jorgelo, kerrnel; ping Let me see if I understand ...
3 years, 6 months ago (2017-06-23 18:57:59 UTC) #39
tbarzic
On 2017/06/23 18:57:59, Jorge Lucangeli Obes wrote: > On 2017/06/22 19:00:11, tbarzic wrote: > > ...
3 years, 6 months ago (2017-06-23 19:27:49 UTC) #40
tbarzic
During offline discussion last Friday, we ended up on the proposal to create a read-only ...
3 years, 5 months ago (2017-06-27 23:59:33 UTC) #45
tbarzic
friendly ping
3 years, 5 months ago (2017-06-29 22:07:00 UTC) #46
Devlin
https://codereview.chromium.org/2902293002/diff/460001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/460001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode49 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:49: // Loads extension with the provided extension ID. install ...
3 years, 5 months ago (2017-07-05 16:12:06 UTC) #47
tbarzic
https://codereview.chromium.org/2902293002/diff/460001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/460001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode49 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:49: // Loads extension with the provided extension ID. install ...
3 years, 5 months ago (2017-07-05 20:16:06 UTC) #48
Devlin
interfacing with extension system lgtm. Thanks for your patience and iteration here! https://codereview.chromium.org/2902293002/diff/500001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc ...
3 years, 5 months ago (2017-07-06 15:14:14 UTC) #49
tbarzic
https://codereview.chromium.org/2902293002/diff/500001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc File chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc (right): https://codereview.chromium.org/2902293002/diff/500001/chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc#newcode77 chrome/browser/chromeos/lock_screen_apps/app_manager_impl.cc:77: // |callback| - called with the app loaded from ...
3 years, 5 months ago (2017-07-06 16:36:15 UTC) #50
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902293002/540001
3 years, 5 months ago (2017-07-06 19:20:07 UTC) #53
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/214589)
3 years, 5 months ago (2017-07-06 20:01:46 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902293002/540001
3 years, 5 months ago (2017-07-06 20:35:43 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_clang_dbg_recipe/builds/304241)
3 years, 5 months ago (2017-07-06 21:49:18 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902293002/540001
3 years, 5 months ago (2017-07-06 22:13:14 UTC) #61
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/214884)
3 years, 5 months ago (2017-07-06 22:41:48 UTC) #63
Jorge Lucangeli Obes
On 2017/06/27 23:59:33, tbarzic wrote: > During offline discussion last Friday, we ended up on ...
3 years, 5 months ago (2017-07-06 22:57:01 UTC) #64
tbarzic
On 2017/07/06 22:57:01, Jorge Lucangeli Obes wrote: > On 2017/06/27 23:59:33, tbarzic wrote: > > ...
3 years, 5 months ago (2017-07-06 22:58:04 UTC) #65
Jorge Lucangeli Obes
On 2017/07/06 22:58:04, tbarzic wrote: > On 2017/07/06 22:57:01, Jorge Lucangeli Obes wrote: > > ...
3 years, 5 months ago (2017-07-06 23:00:47 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2902293002/540001
3 years, 5 months ago (2017-07-07 01:54:22 UTC) #69
commit-bot: I haz the power
3 years, 5 months ago (2017-07-07 03:08:09 UTC) #72
Message was sent while issue was closed.
Committed patchset #28 (id:540001) as
https://chromium.googlesource.com/chromium/src/+/c577bdc5b338dd58d27c8aeec323...

Powered by Google App Engine
This is Rietveld 408576698