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

Issue 528423002: Unload Easy Unlock app when ChromeOS suspends and reload on wake up. (Closed)

Created:
6 years, 3 months ago by Tim Song
Modified:
6 years, 3 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Unload Easy Unlock app when ChromeOS suspends and reload on wake up. When the system wakes up, it takes a few seconds for the correct Bluetooth state to propogate to the app. A bad sync state allows the lock screen to be unlocked even though the phone is not connected in reality. BUG=410082 TEST=manual Committed: https://crrev.com/668c5c10fd476546fc7d6c22b64c1460dd61b247 Cr-Commit-Position: refs/heads/master@{#294104}

Patch Set 1 #

Patch Set 2 : in file #

Total comments: 4

Patch Set 3 : fixes #

Patch Set 4 : Unload instead of uninstalling app #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -12 lines) Patch
M chrome/browser/signin/easy_unlock_service.h View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.cc View 1 2 3 3 chunks +69 lines, -5 lines 5 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 26 (8 generated)
Tim Song
6 years, 3 months ago (2014-09-03 21:29:16 UTC) #2
xiyuan
lgtm
6 years, 3 months ago (2014-09-03 21:33:59 UTC) #3
tbarzic
https://codereview.chromium.org/528423002/diff/20001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/528423002/diff/20001/chrome/browser/signin/easy_unlock_service.cc#newcode128 chrome/browser/signin/easy_unlock_service.cc:128: service_->UnloadApp(); you could add screenlock_state_handler_.reset() to UnloadApp instead of ...
6 years, 3 months ago (2014-09-03 21:40:37 UTC) #5
Tim Song
https://codereview.chromium.org/528423002/diff/20001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/528423002/diff/20001/chrome/browser/signin/easy_unlock_service.cc#newcode128 chrome/browser/signin/easy_unlock_service.cc:128: service_->UnloadApp(); On 2014/09/03 21:40:37, tbarzic wrote: > you could ...
6 years, 3 months ago (2014-09-03 21:53:39 UTC) #7
tbarzic
lgtm
6 years, 3 months ago (2014-09-03 21:55:58 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/528423002/60001
6 years, 3 months ago (2014-09-03 23:23:57 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/8576)
6 years, 3 months ago (2014-09-04 01:27:33 UTC) #12
Tim Song
+noms for ui/login/account_picker/user_pod_row.js
6 years, 3 months ago (2014-09-04 18:09:53 UTC) #14
Tim Song
This needs to be merged into 38. Please approve.
6 years, 3 months ago (2014-09-09 06:30:36 UTC) #16
noms (inactive)
Sorry, I didn't get an email the first time you added me to this. lgtm.
6 years, 3 months ago (2014-09-09 15:33:40 UTC) #17
Tim Song
Thank you Monica. Xiyuan, Toni, can you take another look at easy_unlock_service.cc? I changed to ...
6 years, 3 months ago (2014-09-10 00:37:22 UTC) #18
xiyuan
SLGTM
6 years, 3 months ago (2014-09-10 01:04:25 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tengs@chromium.org/528423002/80001
6 years, 3 months ago (2014-09-10 03:08:50 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:80001) as c1a2832692d54d52c13b019ae2a198288cd9fc32
6 years, 3 months ago (2014-09-10 04:55:48 UTC) #22
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/668c5c10fd476546fc7d6c22b64c1460dd61b247 Cr-Commit-Position: refs/heads/master@{#294104}
6 years, 3 months ago (2014-09-10 05:00:17 UTC) #23
tbarzic
https://codereview.chromium.org/528423002/diff/80001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/528423002/diff/80001/chrome/browser/signin/easy_unlock_service.cc#newcode358 chrome/browser/signin/easy_unlock_service.cc:358: } else { We probably want to ensure that ...
6 years, 3 months ago (2014-09-10 19:56:47 UTC) #24
Tim Song
https://codereview.chromium.org/528423002/diff/80001/chrome/browser/signin/easy_unlock_service.cc File chrome/browser/signin/easy_unlock_service.cc (right): https://codereview.chromium.org/528423002/diff/80001/chrome/browser/signin/easy_unlock_service.cc#newcode358 chrome/browser/signin/easy_unlock_service.cc:358: } else { On 2014/09/10 19:56:46, tbarzic wrote: > ...
6 years, 3 months ago (2014-09-11 03:00:05 UTC) #25
tbarzic
6 years, 3 months ago (2014-09-11 03:16:42 UTC) #26
Message was sent while issue was closed.
https://codereview.chromium.org/528423002/diff/80001/chrome/browser/signin/ea...
File chrome/browser/signin/easy_unlock_service.cc (right):

https://codereview.chromium.org/528423002/diff/80001/chrome/browser/signin/ea...
chrome/browser/signin/easy_unlock_service.cc:358: } else {
On 2014/09/11 03:00:05, Tim Song wrote:
> On 2014/09/10 19:56:46, tbarzic wrote:
> > We probably want to ensure that the extension is enabled even when it's
> loaded.
> > (consider the case where the device shuts down during sleep; the app will
> remain
> > disabled even when it's loaded on the next boot)
> 
> Can this scenario even happen? It doesn't seem like component_loader stores
> extensions that were previously added, so we will re-add this extension when
the
> system reboots.

Afaik, this may happen e.g. if chrome crashes when waking up, or battery runs
out while sleeping.
We will re-add the extension, but it will be disabled (the state is saved in
profile prefs, so it persists across sessions).

Powered by Google App Engine
This is Rietveld 408576698