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

Issue 668213003: Reauthenticate the user before launching Smart Lock setup app. (Closed)

Created:
6 years, 2 months ago by Tim Song
Modified:
6 years, 1 month ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Reauthenticate the user before launching Smart Lock setup app. The reauth is needed to acquire the user's password to add a new cryptohome key for sign-in. BUG=409427 Committed: https://crrev.com/174ab92a101d02bce1301d8fdc8ec15ec5557137 Cr-Commit-Position: refs/heads/master@{#302541}

Patch Set 1 #

Patch Set 2 : updated string #

Patch Set 3 : #

Total comments: 26

Patch Set 4 : bind user context to lifetime of setup app #

Total comments: 8

Patch Set 5 : move cryptohome hceck #

Patch Set 6 : change dcheck to log #

Total comments: 18

Patch Set 7 : fixes #

Patch Set 8 : remove accidently added file #

Patch Set 9 : add override #

Patch Set 10 : fixes + git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+395 lines, -16 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.h View 1 2 3 1 chunk +31 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc View 1 2 3 4 5 6 7 8 1 chunk +130 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.h View 1 2 3 4 5 6 7 8 9 1 chunk +53 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc View 1 2 3 4 5 6 7 8 9 1 chunk +55 lines, -0 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.h View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.h View 1 2 3 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.cc View 1 2 3 4 5 6 7 8 9 5 chunks +80 lines, -1 line 0 comments Download
M chrome/browser/signin/screenlock_bridge.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/chromeos/login/signin_screen_handler.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M ui/login/account_picker/user_pod_row.js View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download

Messages

Total messages: 22 (4 generated)
Tim Song
+nkostylev@ for ui/login +tbarzic@ for the rest
6 years, 2 months ago (2014-10-23 16:57:59 UTC) #2
Nikita (slow)
ui/login lgtm https://codereview.chromium.org/668213003/diff/40001/ui/login/account_picker/user_pod_row.js File ui/login/account_picker/user_pod_row.js (right): https://codereview.chromium.org/668213003/diff/40001/ui/login/account_picker/user_pod_row.js#newcode483 ui/login/account_picker/user_pod_row.js:483: // TODO(tengs): Introduce a special reauth state ...
6 years, 1 month ago (2014-10-27 15:15:10 UTC) #3
tbarzic
+xiyuan (I'd like to get his opinion on this, too) https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc#newcode40 ...
6 years, 1 month ago (2014-10-27 21:44:44 UTC) #5
xiyuan
I agree with Toni's comments and don't have more to add. https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): ...
6 years, 1 month ago (2014-10-28 20:38:03 UTC) #6
Tim Song
https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc#newcode40 chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc:40: // Only primary profile's can set up Easy Unlock ...
6 years, 1 month ago (2014-10-31 17:57:37 UTC) #7
tbarzic
https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc File chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc (right): https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc#newcode28 chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc:28: base::TimeDelta::FromMinutes(kUserContextTimeToLiveMin)); On 2014/10/31 17:57:37, Tim Song wrote: > On ...
6 years, 1 month ago (2014-10-31 18:24:09 UTC) #8
Tim Song
https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc File chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc (right): https://codereview.chromium.org/668213003/diff/40001/chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc#newcode28 chrome/browser/chromeos/login/easy_unlock/short_lived_user_context.cc:28: base::TimeDelta::FromMinutes(kUserContextTimeToLiveMin)); On 2014/10/31 18:24:08, tbarzic wrote: > On 2014/10/31 ...
6 years, 1 month ago (2014-11-01 03:16:53 UTC) #9
xiyuan
LGTM but please wait for Toni. https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc#newcode48 chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc:48: DCHECK(false) << "Only ...
6 years, 1 month ago (2014-11-01 03:51:37 UTC) #10
Tim Song
https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc#newcode48 chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc:48: DCHECK(false) << "Only primary users in non-multiprofile sessions are ...
6 years, 1 month ago (2014-11-01 04:57:39 UTC) #11
tbarzic
LGTM https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc#newcode40 chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc:40: DCHECK(false) << "Screen should not be locked when ...
6 years, 1 month ago (2014-11-01 23:21:46 UTC) #12
tbarzic
https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc File chrome/browser/signin/easy_unlock_service_regular.cc (right): https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc#newcode164 chrome/browser/signin/easy_unlock_service_regular.cc:164: // We may already have the password cached, so ...
6 years, 1 month ago (2014-11-01 23:29:05 UTC) #13
tbarzic
https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc File chrome/browser/signin/easy_unlock_service_regular.cc (right): https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc#newcode70 chrome/browser/signin/easy_unlock_service_regular.cc:70: if (short_lived_user_context_ && short_lived_user_context_->user_context()) { On 2014/11/01 23:21:45, tbarzic ...
6 years, 1 month ago (2014-11-01 23:40:51 UTC) #14
Tim Song
https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc (right): https://codereview.chromium.org/668213003/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc#newcode40 chrome/browser/chromeos/login/easy_unlock/easy_unlock_reauth.cc:40: DCHECK(false) << "Screen should not be locked when attempting ...
6 years, 1 month ago (2014-11-03 19:10:44 UTC) #16
tbarzic
https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc File chrome/browser/signin/easy_unlock_service_regular.cc (right): https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc#newcode164 chrome/browser/signin/easy_unlock_service_regular.cc:164: // We may already have the password cached, so ...
6 years, 1 month ago (2014-11-03 22:50:13 UTC) #17
Tim Song
https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc File chrome/browser/signin/easy_unlock_service_regular.cc (right): https://codereview.chromium.org/668213003/diff/100001/chrome/browser/signin/easy_unlock_service_regular.cc#newcode164 chrome/browser/signin/easy_unlock_service_regular.cc:164: // We may already have the password cached, so ...
6 years, 1 month ago (2014-11-04 00:23:08 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/668213003/200001
6 years, 1 month ago (2014-11-04 00:24:27 UTC) #20
commit-bot: I haz the power
Committed patchset #10 (id:200001)
6 years, 1 month ago (2014-11-04 01:42:44 UTC) #21
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 01:43:23 UTC) #22
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/174ab92a101d02bce1301d8fdc8ec15ec5557137
Cr-Commit-Position: refs/heads/master@{#302541}

Powered by Google App Engine
This is Rietveld 408576698