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

Issue 2168273002: [Sync] Fix behavior when there are two type roots for a type (Closed)

Created:
4 years, 5 months ago by Nicolas Zea
Modified:
4 years, 5 months ago
Reviewers:
stanisc, Patrick Noland
CC:
chromium-reviews, sync-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Sync] Fix behavior when there are two type roots for a type Due to a bug in how server generated root nodes for autofill wallet metadata were created, clients can have both an implicitly created root node and an explicitly (server-side) created root node. This change makes it so we gracefully handle this by allowing both to live side by side in the parent_child_index, and ensures new entities don't become invisible. BUG=630035 Committed: https://crrev.com/ca751c9fd46d972b9e18aff7871df323b1cccaff Cr-Commit-Position: refs/heads/master@{#407544}

Patch Set 1 #

Patch Set 2 : Fix memory lifetimes #

Patch Set 3 : Self review #

Total comments: 3

Patch Set 4 : Update comment #

Total comments: 4

Patch Set 5 : Fix nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -58 lines) Patch
M sync/syncable/parent_child_index.h View 1 3 chunks +7 lines, -6 lines 0 comments Download
M sync/syncable/parent_child_index.cc View 1 2 3 11 chunks +29 lines, -52 lines 0 comments Download
M sync/syncable/parent_child_index_unittest.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (16 generated)
Nicolas Zea
+Patrick for sync review +Stan, since you made these changes originally could you also double ...
4 years, 5 months ago (2016-07-22 19:25:24 UTC) #7
Patrick Noland
lgtm with one comment https://codereview.chromium.org/2168273002/diff/40001/sync/syncable/parent_child_index.cc File sync/syncable/parent_child_index.cc (right): https://codereview.chromium.org/2168273002/diff/40001/sync/syncable/parent_child_index.cc#newcode93 sync/syncable/parent_child_index.cc:93: // in use, so we ...
4 years, 5 months ago (2016-07-22 22:08:02 UTC) #10
stanisc
https://codereview.chromium.org/2168273002/diff/40001/sync/syncable/parent_child_index.cc File sync/syncable/parent_child_index.cc (right): https://codereview.chromium.org/2168273002/diff/40001/sync/syncable/parent_child_index.cc#newcode93 sync/syncable/parent_child_index.cc:93: // in use, so we keep it in the ...
4 years, 5 months ago (2016-07-22 22:17:29 UTC) #11
Nicolas Zea
https://codereview.chromium.org/2168273002/diff/40001/sync/syncable/parent_child_index.cc File sync/syncable/parent_child_index.cc (right): https://codereview.chromium.org/2168273002/diff/40001/sync/syncable/parent_child_index.cc#newcode93 sync/syncable/parent_child_index.cc:93: // in use, so we keep it in the ...
4 years, 5 months ago (2016-07-22 23:10:50 UTC) #13
stanisc
lgtm
4 years, 5 months ago (2016-07-22 23:48:04 UTC) #15
stanisc
A couple of nitpicks: https://codereview.chromium.org/2168273002/diff/60001/sync/syncable/parent_child_index_unittest.cc File sync/syncable/parent_child_index_unittest.cc (right): https://codereview.chromium.org/2168273002/diff/60001/sync/syncable/parent_child_index_unittest.cc#newcode473 sync/syncable/parent_child_index_unittest.cc:473: // Test that the if ...
4 years, 5 months ago (2016-07-22 23:50:25 UTC) #16
Nicolas Zea
Done, thanks! https://codereview.chromium.org/2168273002/diff/60001/sync/syncable/parent_child_index_unittest.cc File sync/syncable/parent_child_index_unittest.cc (right): https://codereview.chromium.org/2168273002/diff/60001/sync/syncable/parent_child_index_unittest.cc#newcode473 sync/syncable/parent_child_index_unittest.cc:473: // Test that the if for some ...
4 years, 5 months ago (2016-07-25 18:20:38 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2168273002/80001
4 years, 5 months ago (2016-07-25 18:20:57 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-25 19:34:28 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 19:36:37 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/ca751c9fd46d972b9e18aff7871df323b1cccaff
Cr-Commit-Position: refs/heads/master@{#407544}

Powered by Google App Engine
This is Rietveld 408576698