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

Issue 8759019: [Sync] Add intelligent re-encryption support. (Closed)

Created:
9 years ago by Nicolas Zea
Modified:
9 years ago
Reviewers:
akalin
CC:
chromium-reviews, Raghu Simha, ncarter (slow), akalin, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

[Sync] Add intelligent re-encryption support. Add an EncryptIfDifferent method that only encrypts something if the underlying unencrypted data is either different or encrypted with an old key. Modify sync encryption code to use this method instead of their own difference checks. Because of this change, we also now always ensure the nigori has the full set of encryption keys during any SetPassphrase call BUG=107297 TEST=sync_unit_tests, cryptographer's unit_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114269

Patch Set 1 #

Patch Set 2 : Self review #

Total comments: 20

Patch Set 3 : Comments #

Patch Set 4 : Rebase #

Total comments: 12

Patch Set 5 : Address comments #

Total comments: 4

Patch Set 6 : Final comments + full rebase #

Patch Set 7 : Fix merge conflict #

Patch Set 8 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+298 lines, -62 lines) Patch
M chrome/browser/sync/internal_api/base_node.h View 1 2 3 4 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/internal_api/sync_manager.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/sync/internal_api/syncapi_unittest.cc View 1 2 3 4 5 6 7 14 chunks +197 lines, -11 lines 0 comments Download
M chrome/browser/sync/internal_api/write_node.cc View 1 2 3 4 5 6 7 4 chunks +26 lines, -30 lines 0 comments Download
M chrome/browser/sync/util/cryptographer.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -3 lines 0 comments Download
M chrome/browser/sync/util/cryptographer.cc View 1 2 3 4 5 6 7 2 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/sync/util/cryptographer_unittest.cc View 1 2 3 4 5 6 7 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Nicolas Zea
PTAL
9 years ago (2011-12-05 21:26:26 UTC) #1
akalin
http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h File chrome/browser/sync/internal_api/base_node.h (right): http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h#newcode211 chrome/browser/sync/internal_api/base_node.h:211: friend class SyncApiTest; i think the 'friend class' declarations ...
9 years ago (2011-12-06 18:28:00 UTC) #2
Nicolas Zea
PTAL http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h File chrome/browser/sync/internal_api/base_node.h (right): http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h#newcode211 chrome/browser/sync/internal_api/base_node.h:211: friend class SyncApiTest; On 2011/12/06 18:28:02, akalin wrote: ...
9 years ago (2011-12-06 20:45:36 UTC) #3
Nicolas Zea
ping!
9 years ago (2011-12-09 20:14:06 UTC) #4
akalin
Few more http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h File chrome/browser/sync/internal_api/base_node.h (right): http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h#newcode211 chrome/browser/sync/internal_api/base_node.h:211: friend class SyncApiTest; On 2011/12/06 20:45:36, nzea ...
9 years ago (2011-12-09 23:52:42 UTC) #5
Nicolas Zea
All comments addressed, PTAL http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h File chrome/browser/sync/internal_api/base_node.h (right): http://codereview.chromium.org/8759019/diff/2001/chrome/browser/sync/internal_api/base_node.h#newcode211 chrome/browser/sync/internal_api/base_node.h:211: friend class SyncApiTest; On 2011/12/09 ...
9 years ago (2011-12-12 20:12:20 UTC) #6
akalin
LGTM after trybots http://codereview.chromium.org/8759019/diff/20001/chrome/browser/sync/internal_api/syncapi_unittest.cc File chrome/browser/sync/internal_api/syncapi_unittest.cc (right): http://codereview.chromium.org/8759019/diff/20001/chrome/browser/sync/internal_api/syncapi_unittest.cc#newcode896 chrome/browser/sync/internal_api/syncapi_unittest.cc:896: else no need for 'else' since ...
9 years ago (2011-12-12 22:05:21 UTC) #7
Nicolas Zea
Committing once bots go green. http://codereview.chromium.org/8759019/diff/20001/chrome/browser/sync/internal_api/syncapi_unittest.cc File chrome/browser/sync/internal_api/syncapi_unittest.cc (right): http://codereview.chromium.org/8759019/diff/20001/chrome/browser/sync/internal_api/syncapi_unittest.cc#newcode896 chrome/browser/sync/internal_api/syncapi_unittest.cc:896: else On 2011/12/12 22:05:22, ...
9 years ago (2011-12-13 00:43:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/8759019/28001
9 years ago (2011-12-13 18:10:38 UTC) #9
commit-bot: I haz the power
Can't apply patch for file chrome/browser/sync/internal_api/syncapi_unittest.cc. While running patch -p1 --forward --force; patching file chrome/browser/sync/internal_api/syncapi_unittest.cc ...
9 years ago (2011-12-13 18:10:53 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/8759019/31001
9 years ago (2011-12-13 19:40:39 UTC) #11
commit-bot: I haz the power
9 years ago (2011-12-13 20:38:10 UTC) #12
Try job failure for 8759019-31001 (retry) on mac_rel for step "compile" (clobber
build).
It's a second try, previously, step "compile" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698