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

Issue 8917031: [Sync] Add nigori node conflict resolution. (Closed)

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

Description

[Sync] Add nigori node conflict resolution. We merge the set of encryption keys, types, and non-encryption data in the conflict resolver. If the server's keys are undecryptable we preserve them until the user provides the passphrase, at which point we store back the merged set of encryption keys. This way, once everything is resolved, the default passphrase will be the one that was committed first, and all clients will have all sets of encryption keys. BUG=105615 TEST=sync_unit_tests. Manually attempt to set two different passphrases and encrypted types on synced machines. Ensure everything works. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115248

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Re-add some lines lost in the split #

Total comments: 14

Patch Set 4 : Address comments #

Patch Set 5 : Rebase + pass trans/cryptographer directly through #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -62 lines) Patch
M chrome/browser/sync/engine/apply_updates_command_unittest.cc View 1 1 chunk +10 lines, -13 lines 0 comments Download
M chrome/browser/sync/engine/conflict_resolver.h View 1 2 3 4 3 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/conflict_resolver.cc View 1 2 3 4 8 chunks +44 lines, -6 lines 0 comments Download
M chrome/browser/sync/engine/resolve_conflicts_command.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/sync/engine/syncer_unittest.cc View 1 2 3 4 4 chunks +133 lines, -0 lines 0 comments Download
M chrome/browser/sync/engine/syncer_util.cc View 1 2 3 2 chunks +47 lines, -38 lines 0 comments Download
M chrome/browser/sync/test/engine/mock_connection_manager.h View 1 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/engine/mock_connection_manager.cc View 2 chunks +41 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Nicolas Zea
PTAL. This basically pulls out and makes a bit more robust the nigori node conflict ...
9 years ago (2011-12-13 01:39:54 UTC) #1
Nicolas Zea
Note that this patch is built on top of http://codereview.chromium.org/8759019
9 years ago (2011-12-13 01:40:24 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/8917031/diff/14001/chrome/browser/sync/engine/conflict_resolver.cc File chrome/browser/sync/engine/conflict_resolver.cc (right): http://codereview.chromium.org/8917031/diff/14001/chrome/browser/sync/engine/conflict_resolver.cc#newcode132 chrome/browser/sync/engine/conflict_resolver.cc:132: // TODO(zea): Find a better way of doing this. ...
9 years ago (2011-12-20 17:54:05 UTC) #3
Nicolas Zea
PTAL http://codereview.chromium.org/8917031/diff/14001/chrome/browser/sync/engine/conflict_resolver.cc File chrome/browser/sync/engine/conflict_resolver.cc (right): http://codereview.chromium.org/8917031/diff/14001/chrome/browser/sync/engine/conflict_resolver.cc#newcode132 chrome/browser/sync/engine/conflict_resolver.cc:132: // TODO(zea): Find a better way of doing ...
9 years ago (2011-12-20 19:54:09 UTC) #4
Nicolas Zea
Made the plumbing change mentioned, and reverted directory_manager changes. PTAL
9 years ago (2011-12-20 21:14:30 UTC) #5
tim (not reviewing)
lgtm
9 years ago (2011-12-20 21:19:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zea@chromium.org/8917031/17003
9 years ago (2011-12-20 21:20:18 UTC) #7
commit-bot: I haz the power
9 years ago (2011-12-21 01:07:59 UTC) #8
Change committed as 115248

Powered by Google App Engine
This is Rietveld 408576698