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

Issue 1977923002: Implement pin storage backend. (Closed)

Created:
4 years, 7 months ago by jdufault
Modified:
4 years, 7 months ago
Reviewers:
gab, achuithb, stevenjb
CC:
chromium-reviews, dzhioev+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@lkgr
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement pin storage backend. This provides the backend C++ api for managing and authenticating different PINs. It will be used by the lock screen and by the settings. BUG=603217 Committed: https://crrev.com/489f430f0a9a61984f4f114bbed9bd6ce1e14c77 Cr-Commit-Position: refs/heads/master@{#395156}

Patch Set 1 : #

Total comments: 31

Patch Set 2 : Address comments #

Total comments: 13

Patch Set 3 : Address comments #

Total comments: 4

Patch Set 4 : Nits #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+459 lines, -0 lines) Patch
A chrome/browser/chromeos/login/quick_unlock/pin_storage.h View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/quick_unlock/pin_storage.cc View 1 2 1 chunk +119 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.h View 1 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/quick_unlock/pin_storage_factory.cc View 1 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc View 1 2 3 1 chunk +161 lines, -0 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (9 generated)
jdufault
Achuith or Steven, PTAL. I wanted keep pin storage and pin authentication separate concepts, so ...
4 years, 7 months ago (2016-05-13 20:04:53 UTC) #3
achuithb
https://codereview.chromium.org/1977923002/diff/20001/chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc File chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc (right): https://codereview.chromium.org/1977923002/diff/20001/chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc#newcode14 chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc:14: // TODO(jdufault): Pull these values in from policy. Reference ...
4 years, 7 months ago (2016-05-13 23:34:57 UTC) #5
stevenjb
https://codereview.chromium.org/1977923002/diff/20001/chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc File chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc (right): https://codereview.chromium.org/1977923002/diff/20001/chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc#newcode34 chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc:34: } These both look like they should be PinStorage ...
4 years, 7 months ago (2016-05-16 16:33:34 UTC) #6
jdufault
https://codereview.chromium.org/1977923002/diff/20001/chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc File chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc (right): https://codereview.chromium.org/1977923002/diff/20001/chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc#newcode14 chrome/browser/chromeos/login/quick_unlock/pin_authentication.cc:14: // TODO(jdufault): Pull these values in from policy. On ...
4 years, 7 months ago (2016-05-16 22:08:48 UTC) #7
stevenjb
https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc File chrome/browser/chromeos/login/quick_unlock/pin_storage.cc (right): https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc#newcode71 chrome/browser/chromeos/login/quick_unlock/pin_storage.cc:71: } This could be attempt_count() inlined in the header ...
4 years, 7 months ago (2016-05-16 22:19:08 UTC) #8
achuithb
looks good overall https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc File chrome/browser/chromeos/login/quick_unlock/pin_storage.cc (right): https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc#newcode21 chrome/browser/chromeos/login/quick_unlock/pin_storage.cc:21: std::string ComputeSecret(std::string pin, std::string salt) { ...
4 years, 7 months ago (2016-05-16 23:05:10 UTC) #9
jdufault
https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc File chrome/browser/chromeos/login/quick_unlock/pin_storage.cc (right): https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc#newcode21 chrome/browser/chromeos/login/quick_unlock/pin_storage.cc:21: std::string ComputeSecret(std::string pin, std::string salt) { On 2016/05/16 23:05:10, ...
4 years, 7 months ago (2016-05-17 19:58:26 UTC) #10
achuithb
https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc File chrome/browser/chromeos/login/quick_unlock/pin_storage.cc (right): https://codereview.chromium.org/1977923002/diff/40001/chrome/browser/chromeos/login/quick_unlock/pin_storage.cc#newcode21 chrome/browser/chromeos/login/quick_unlock/pin_storage.cc:21: std::string ComputeSecret(std::string pin, std::string salt) { On 2016/05/17 19:58:26, ...
4 years, 7 months ago (2016-05-17 20:13:44 UTC) #11
achuithb
lgtm from me assuming you take care of the nits in the previous comment
4 years, 7 months ago (2016-05-17 20:14:06 UTC) #12
jdufault
https://codereview.chromium.org/1977923002/diff/60001/chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc File chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc (right): https://codereview.chromium.org/1977923002/diff/60001/chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc#newcode34 chrome/browser/chromeos/login/quick_unlock/pin_storage_unittest.cc:34: void ReduceRemainingStrongAuthTimeBy(base::TimeDelta time_delta) { On 2016/05/17 20:13:44, achuithb wrote: ...
4 years, 7 months ago (2016-05-20 19:29:44 UTC) #13
jdufault
+gab@, bauerb@, or battre@ for chrome/browser/prefs/browser_prefs.cc.
4 years, 7 months ago (2016-05-20 19:31:58 UTC) #15
gab
On 2016/05/20 19:31:58, jdufault wrote: > +gab@, bauerb@, or battre@ for chrome/browser/prefs/browser_prefs.cc. Please do not ...
4 years, 7 months ago (2016-05-20 19:54:55 UTC) #16
gab
c/b/prefs lgtm
4 years, 7 months ago (2016-05-20 19:56:07 UTC) #18
jdufault
On 2016/05/20 19:54:55, gab wrote: > On 2016/05/20 19:31:58, jdufault wrote: > > +gab@, bauerb@, ...
4 years, 7 months ago (2016-05-20 20:00:07 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977923002/90001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1977923002/90001
4 years, 7 months ago (2016-05-20 20:00:19 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:90001)
4 years, 7 months ago (2016-05-20 20:34:42 UTC) #24
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 20:36:25 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/489f430f0a9a61984f4f114bbed9bd6ce1e14c77
Cr-Commit-Position: refs/heads/master@{#395156}

Powered by Google App Engine
This is Rietveld 408576698