|
|
Chromium Code Reviews
Descriptioncros: Preload and reuse the lock screen across lock sessions
This is currently behind a feature flag and not enabled by default.
- The lock screen webview will be saved and reused across lock sessions.
- The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds.
See https://codereview.chromium.org/2512473004/ for additional context.
BUG=669638
Committed: https://crrev.com/314a23a11c9ed8c9a3b0a51816a20c84f4fd822d
Cr-Commit-Position: refs/heads/master@{#438698}
Patch Set 1 : Initial upload #
Total comments: 7
Patch Set 2 : Address comments #Patch Set 3 : Rebase #Patch Set 4 : Add comment describing when we preload #Patch Set 5 : Rebase #
Dependent Patchsets: Messages
Total messages: 46 (34 generated)
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== IGNORE: webview-preload BUG=669638 ========== to ========== cros: Preload and reuse the lock screen across lock sessions - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. BUG=669638 ==========
Description was changed from ========== cros: Preload and reuse the lock screen across lock sessions - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. BUG=669638 ========== to ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. BUG=669638 ==========
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Patchset #1 (id:1) has been deleted
Patchset #1 (id:20001) has been deleted
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. BUG=669638 ========== to ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. See https://codereview.chromium.org/2512473004/ for additional context. BUG=669638 ==========
jdufault@chromium.org changed reviewers: + achuith@chromium.org, alemate@chromium.org
achuith@, alemate@, PTAL. Thanks.
jdufault@chromium.org changed reviewers: + xiyuan@chromium.org
xiyuan@ PTAL since achuith@ is OOO.
https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/lock/webui_screen_locker.cc:87: profile->GetPrefs()->GetBoolean(prefs::kEnableAutoScreenLock); Why do we need to associate with kEnableAutoScreenLock ? https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/session/chrome_session_manager.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/session/chrome_session_manager.cc:50: const int IDLE_SECONDS_BEFORE_PRELOADING_LOCK_SCREEN = 8; const -> constexpr IDLE_SECONDS_BEFORE_PRELOADING_LOCK_SCREEN -> kIdelSecondsBeforePreloadingLockScreen
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/lock/webui_screen_locker.cc:87: profile->GetPrefs()->GetBoolean(prefs::kEnableAutoScreenLock); On 2016/12/09 22:59:55, xiyuan wrote: > Why do we need to associate with kEnableAutoScreenLock ? It is the primary heuristic to try and figure out if the user actively locks their screen. If set to false then no lock screen will appear after a device goes to sleep. Maybe an alternative would be an unsycned pref recording the last time the user manually locked their screen. If it has been longer than a week, don't preload? https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/session/chrome_session_manager.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/session/chrome_session_manager.cc:50: const int IDLE_SECONDS_BEFORE_PRELOADING_LOCK_SCREEN = 8; On 2016/12/09 22:59:55, xiyuan wrote: > const -> constexpr > > IDLE_SECONDS_BEFORE_PRELOADING_LOCK_SCREEN -> > kIdelSecondsBeforePreloadingLockScreen Done.
https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/lock/webui_screen_locker.cc:87: profile->GetPrefs()->GetBoolean(prefs::kEnableAutoScreenLock); On 2016/12/12 20:08:27, jdufault wrote: > On 2016/12/09 22:59:55, xiyuan wrote: > > Why do we need to associate with kEnableAutoScreenLock ? > > It is the primary heuristic to try and figure out if the user actively locks > their screen. If set to false then no lock screen will appear after a device > goes to sleep. > > Maybe an alternative would be an unsycned pref recording the last time the user > manually locked their screen. If it has been longer than a week, don't preload? How about using the following: https://cs.chromium.org/chromium/src/chrome/browser/chromeos/login/users/chro...
https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/lock/webui_screen_locker.cc:87: profile->GetPrefs()->GetBoolean(prefs::kEnableAutoScreenLock); On 2016/12/12 20:33:19, xiyuan wrote: > On 2016/12/12 20:08:27, jdufault wrote: > > On 2016/12/09 22:59:55, xiyuan wrote: > > > Why do we need to associate with kEnableAutoScreenLock ? > > > > It is the primary heuristic to try and figure out if the user actively locks > > their screen. If set to false then no lock screen will appear after a device > > goes to sleep. > > > > Maybe an alternative would be an unsycned pref recording the last time the > user > > manually locked their screen. If it has been longer than a week, don't > preload? > > How about using the following: > > https://cs.chromium.org/chromium/src/chrome/browser/chromeos/login/users/chro... On a second thought, the problem we are trying to solve is the timeout when lock on suspending. So what you have makes sense now. :) Let's comment that clearly.
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... File chrome/browser/chromeos/login/lock/webui_screen_locker.cc (right): https://codereview.chromium.org/2553863002/diff/40001/chrome/browser/chromeos... chrome/browser/chromeos/login/lock/webui_screen_locker.cc:87: profile->GetPrefs()->GetBoolean(prefs::kEnableAutoScreenLock); On 2016/12/12 20:43:36, xiyuan wrote: > On 2016/12/12 20:33:19, xiyuan wrote: > > On 2016/12/12 20:08:27, jdufault wrote: > > > On 2016/12/09 22:59:55, xiyuan wrote: > > > > Why do we need to associate with kEnableAutoScreenLock ? > > > > > > It is the primary heuristic to try and figure out if the user actively locks > > > their screen. If set to false then no lock screen will appear after a device > > > goes to sleep. > > > > > > Maybe an alternative would be an unsycned pref recording the last time the > > user > > > manually locked their screen. If it has been longer than a week, don't > > preload? > > > > How about using the following: > > > > > https://cs.chromium.org/chromium/src/chrome/browser/chromeos/login/users/chro... > > On a second thought, the problem we are trying to solve is the timeout when lock > on suspending. So what you have makes sense now. :) Let's comment that clearly. I've added a comment.
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
The CQ bit was checked by jdufault@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
The CQ bit was checked by jdufault@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from alemate@chromium.org, xiyuan@chromium.org Link to the patchset: https://codereview.chromium.org/2553863002/#ps120001 (title: "Rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 120001, "attempt_start_ts": 1481761171320680,
"parent_rev": "b462479efedc700e92f9bc70fe89e4d76f0afcac", "commit_rev":
"85582c9e0da7fa849c9341407f6fdeaea4edf889"}
Message was sent while issue was closed.
Description was changed from ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. See https://codereview.chromium.org/2512473004/ for additional context. BUG=669638 ========== to ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. See https://codereview.chromium.org/2512473004/ for additional context. BUG=669638 Review-Url: https://codereview.chromium.org/2553863002 ==========
Message was sent while issue was closed.
Committed patchset #5 (id:120001)
Message was sent while issue was closed.
Description was changed from ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. See https://codereview.chromium.org/2512473004/ for additional context. BUG=669638 Review-Url: https://codereview.chromium.org/2553863002 ========== to ========== cros: Preload and reuse the lock screen across lock sessions This is currently behind a feature flag and not enabled by default. - The lock screen webview will be saved and reused across lock sessions. - The lock screen webview will be preloaded after the user has not generated any input events for 8 seconds. See https://codereview.chromium.org/2512473004/ for additional context. BUG=669638 Committed: https://crrev.com/314a23a11c9ed8c9a3b0a51816a20c84f4fd822d Cr-Commit-Position: refs/heads/master@{#438698} ==========
Message was sent while issue was closed.
Patchset 5 (id:??) landed as https://crrev.com/314a23a11c9ed8c9a3b0a51816a20c84f4fd822d Cr-Commit-Position: refs/heads/master@{#438698} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
