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

Issue 10878015: [Sync] Move keystore key handling to SyncEncryptionHandlerImpl (Closed)

Created:
8 years, 4 months ago by Nicolas Zea
Modified:
8 years, 3 months ago
Reviewers:
akalin
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing)
Visibility:
Public.

Description

[Sync] Move keystore key handling to SyncEncryptionHandlerImpl The cryptographer has no notion of keystore keys, and we now persist the keystore key by reusing the OnBoostrapTokenUpdated method (which now takes an enum as an extra param specifying the type of token). BUG=129665 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=154007

Patch Set 1 #

Total comments: 14

Patch Set 2 : Change observer registration ordering #

Total comments: 4

Patch Set 3 : Address comments #

Patch Set 4 : Fix #

Patch Set 5 : Rebase + fix cryptographer #

Total comments: 14

Patch Set 6 : Address comments #

Total comments: 6

Patch Set 7 : No more default_nigori_ #

Total comments: 6

Patch Set 8 : Address comments #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -230 lines) Patch
M chrome/browser/sync/glue/sync_backend_host.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/sync/glue/sync_backend_host.cc View 1 2 3 4 5 6 7 8 6 chunks +12 lines, -26 lines 0 comments Download
M sync/engine/download_updates_command.cc View 1 2 3 4 3 chunks +8 lines, -8 lines 0 comments Download
M sync/engine/syncer_unittest.cc View 1 2 3 4 3 chunks +4 lines, -4 lines 0 comments Download
M sync/internal_api/debug_info_event_listener.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/debug_info_event_listener.cc View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M sync/internal_api/js_sync_encryption_handler_observer.h View 1 chunk +2 lines, -1 line 0 comments Download
M sync/internal_api/js_sync_encryption_handler_observer.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M sync/internal_api/js_sync_encryption_handler_observer_unittest.cc View 1 2 3 4 1 chunk +7 lines, -8 lines 0 comments Download
M sync/internal_api/public/sync_encryption_handler.h View 2 chunks +8 lines, -1 line 0 comments Download
M sync/internal_api/public/sync_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M sync/internal_api/public/test/fake_sync_manager.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M sync/internal_api/public/util/sync_string_conversions.h View 1 chunk +2 lines, -0 lines 0 comments Download
M sync/internal_api/public/util/sync_string_conversions.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl.h View 1 2 3 4 3 chunks +13 lines, -2 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl.cc View 1 2 3 4 4 chunks +32 lines, -2 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl_unittest.cc View 1 2 3 4 4 chunks +27 lines, -4 lines 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +5 lines, -16 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 14 chunks +28 lines, -14 lines 0 comments Download
M sync/internal_api/test/fake_sync_manager.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M sync/protocol/client_debug_info.proto View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M sync/syncable/nigori_handler.h View 1 chunk +10 lines, -0 lines 0 comments Download
M sync/test/fake_sync_encryption_handler.h View 2 chunks +6 lines, -0 lines 0 comments Download
M sync/test/fake_sync_encryption_handler.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M sync/util/cryptographer.h View 1 2 3 4 5 6 7 5 chunks +13 lines, -25 lines 0 comments Download
M sync/util/cryptographer.cc View 1 2 3 4 5 6 10 chunks +26 lines, -65 lines 0 comments Download
M sync/util/cryptographer_unittest.cc View 2 chunks +0 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Nicolas Zea
PTAL
8 years, 4 months ago (2012-08-22 21:20:18 UTC) #1
akalin
a few comments http://codereview.chromium.org/10878015/diff/1/sync/internal_api/js_sync_encryption_handler_observer.cc File sync/internal_api/js_sync_encryption_handler_observer.cc (left): http://codereview.chromium.org/10878015/diff/1/sync/internal_api/js_sync_encryption_handler_observer.cc#oldcode57 sync/internal_api/js_sync_encryption_handler_observer.cc:57: details.SetString("bootstrapToken", "<redacted>"); clearer to keep the ...
8 years, 4 months ago (2012-08-22 22:09:33 UTC) #2
Nicolas Zea
Done, with a question inline. http://codereview.chromium.org/10878015/diff/1/sync/internal_api/js_sync_encryption_handler_observer.cc File sync/internal_api/js_sync_encryption_handler_observer.cc (left): http://codereview.chromium.org/10878015/diff/1/sync/internal_api/js_sync_encryption_handler_observer.cc#oldcode57 sync/internal_api/js_sync_encryption_handler_observer.cc:57: details.SetString("bootstrapToken", "<redacted>"); On 2012/08/22 ...
8 years, 4 months ago (2012-08-22 22:48:59 UTC) #3
Nicolas Zea
Comment addressed, PTAL.
8 years, 4 months ago (2012-08-24 23:29:22 UTC) #4
akalin
few more cryptographer comments http://codereview.chromium.org/10878015/diff/62/sync/util/cryptographer.cc File sync/util/cryptographer.cc (right): http://codereview.chromium.org/10878015/diff/62/sync/util/cryptographer.cc#newcode60 sync/util/cryptographer.cc:60: DCHECK(nigoris_.find(default_nigori_name_) != nigoris_.end()); do we ...
8 years, 3 months ago (2012-08-27 22:06:55 UTC) #5
Nicolas Zea
PTAL http://codereview.chromium.org/10878015/diff/62/sync/util/cryptographer.cc File sync/util/cryptographer.cc (right): http://codereview.chromium.org/10878015/diff/62/sync/util/cryptographer.cc#newcode60 sync/util/cryptographer.cc:60: DCHECK(nigoris_.find(default_nigori_name_) != nigoris_.end()); On 2012/08/27 22:06:55, akalin wrote: ...
8 years, 3 months ago (2012-08-28 01:18:50 UTC) #6
akalin
sorry, one more thing re. default_nigori_ http://codereview.chromium.org/10878015/diff/7034/sync/util/cryptographer.cc File sync/util/cryptographer.cc (right): http://codereview.chromium.org/10878015/diff/7034/sync/util/cryptographer.cc#newcode60 sync/util/cryptographer.cc:60: if (nigoris_.find(default_nigori_name_) == ...
8 years, 3 months ago (2012-08-29 00:02:49 UTC) #7
Nicolas Zea
http://codereview.chromium.org/10878015/diff/7034/sync/util/cryptographer.cc File sync/util/cryptographer.cc (right): http://codereview.chromium.org/10878015/diff/7034/sync/util/cryptographer.cc#newcode60 sync/util/cryptographer.cc:60: if (nigoris_.find(default_nigori_name_) == nigoris_.end() || On 2012/08/29 00:02:50, akalin ...
8 years, 3 months ago (2012-08-29 19:32:20 UTC) #8
akalin
LGTM http://codereview.chromium.org/10878015/diff/26001/sync/util/cryptographer.h File sync/util/cryptographer.h (right): http://codereview.chromium.org/10878015/diff/26001/sync/util/cryptographer.h#newcode175 sync/util/cryptographer.h:175: // The key name associated with the default ...
8 years, 3 months ago (2012-08-29 19:40:15 UTC) #9
Nicolas Zea
Committing. http://codereview.chromium.org/10878015/diff/26001/sync/util/cryptographer.h File sync/util/cryptographer.h (right): http://codereview.chromium.org/10878015/diff/26001/sync/util/cryptographer.h#newcode175 sync/util/cryptographer.h:175: // The key name associated with the default ...
8 years, 3 months ago (2012-08-29 19:46:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/10878015/17004
8 years, 3 months ago (2012-08-29 19:48:28 UTC) #11
commit-bot: I haz the power
Try job failure for 10878015-17004 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 3 months ago (2012-08-29 22:55:08 UTC) #12
commit-bot: I haz the power
8 years, 3 months ago (2012-08-29 23:03:01 UTC) #13

Powered by Google App Engine
This is Rietveld 408576698