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

Issue 808563004: Clean up Smart Lock cryptohome keys logic: (Closed)

Created:
6 years ago by Tim Song
Modified:
6 years ago
Reviewers:
xiyuan, tbarzic
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, dzhioev+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Clean up Smart Lock cryptohome keys logic: 1. Queue all cryptohome keys operations. 2. Roll ClearRemoteDevices as a specific case of SetRemoteDevices 3. Introduce new RefreshKeys operation using the existing add and remove keys operations to replace the current cryptohome keys with new keys. 4. After reauthenticating for setup, remove the old cryptohome keys. BUG=432996 Committed: https://crrev.com/275152c34d8edc5346757288cfffe63444650faa Cr-Commit-Position: refs/heads/master@{#309094}

Patch Set 1 #

Total comments: 10

Patch Set 2 : refactor scoped_ptr from deque #

Total comments: 2

Patch Set 3 : use UserContext after create keys operation #

Total comments: 2

Patch Set 4 : add back const #

Total comments: 12

Patch Set 5 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -194 lines) Patch
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h View 1 2 3 4 5 chunks +30 lines, -34 lines 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc View 1 2 4 chunks +32 lines, -97 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.h View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/login/easy_unlock/easy_unlock_remove_keys_operation.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/login/session/user_session_manager.cc View 2 chunks +9 lines, -16 lines 0 comments Download
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.cc View 1 2 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.h View 1 2 3 4 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_regular.cc View 1 2 3 4 4 chunks +32 lines, -26 lines 0 comments Download
M chrome/browser/signin/easy_unlock_service_signin_chromeos.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/signin/easy_unlock_service_signin_chromeos.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
Tim Song
6 years ago (2014-12-16 23:50:56 UTC) #2
xiyuan
https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc (right): https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc#newcode51 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc:51: RunNextOperation(); What happens if there is a running operation? ...
6 years ago (2014-12-17 00:23:14 UTC) #3
Tim Song
https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc (right): https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc#newcode51 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.cc:51: RunNextOperation(); On 2014/12/17 00:23:14, xiyuan wrote: > What happens ...
6 years ago (2014-12-17 02:05:14 UTC) #4
xiyuan
https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc (right): https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc#newcode45 chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc:45: user_context_, devices_.size(), On 2014/12/17 02:05:14, Tim Song wrote: > ...
6 years ago (2014-12-17 03:26:33 UTC) #5
tbarzic
can you make sure you've synced with ToT (specifically https://crrev.com/cc7df610b49e8ba6c60c8ccbcfb111f5d2084128)
6 years ago (2014-12-17 03:34:06 UTC) #6
Tim Song
Rebased to ToT. https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc File chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc (right): https://codereview.chromium.org/808563004/diff/1/chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc#newcode45 chrome/browser/chromeos/login/easy_unlock/easy_unlock_refresh_keys_operation.cc:45: user_context_, devices_.size(), On 2014/12/17 03:26:33, xiyuan ...
6 years ago (2014-12-17 20:57:57 UTC) #7
xiyuan
lgtm https://codereview.chromium.org/808563004/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h File chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h (right): https://codereview.chromium.org/808563004/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h#newcode36 chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h:36: const UserContext& user_context() { return user_context_; } nit: ...
6 years ago (2014-12-17 21:02:42 UTC) #8
Tim Song
https://codereview.chromium.org/808563004/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h File chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h (right): https://codereview.chromium.org/808563004/diff/40001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h#newcode36 chrome/browser/chromeos/login/easy_unlock/easy_unlock_create_keys_operation.h:36: const UserContext& user_context() { return user_context_; } On 2014/12/17 ...
6 years ago (2014-12-17 21:45:23 UTC) #9
tbarzic
only nitty stuff... LGTM https://codereview.chromium.org/808563004/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h (right): https://codereview.chromium.org/808563004/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h#newcode83 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h:83: // Called when the TPM ...
6 years ago (2014-12-18 10:49:05 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/808563004/80001
6 years ago (2014-12-18 22:33:50 UTC) #12
Tim Song
https://codereview.chromium.org/808563004/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h File chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h (right): https://codereview.chromium.org/808563004/diff/60001/chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h#newcode83 chrome/browser/chromeos/login/easy_unlock/easy_unlock_key_manager.h:83: // Called when the TPM key is ready to ...
6 years ago (2014-12-18 22:42:55 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-12-18 22:52:38 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/275152c34d8edc5346757288cfffe63444650faa Cr-Commit-Position: refs/heads/master@{#309094}
6 years ago (2014-12-18 22:53:49 UTC) #15
benwells
6 years ago (2014-12-23 02:10:26 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #5 id:80001) has been created in
https://codereview.chromium.org/789793005/ by benwells@chromium.org.

The reason for reverting is: Once this change landed chromeos file manager tests
started failing across the MSAN bots.

This is the most likely culprit, so reverting speculatively. If this does not
help will reland this change.

See
http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20ChromeOS%20M....

Powered by Google App Engine
This is Rietveld 408576698