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

Issue 8396022: [Sync] Add HasChildren() function and use it instead of GetFirstChildId() (Closed)

Created:
9 years, 2 months ago by akalin
Modified:
9 years, 1 month ago
Reviewers:
rlarocque, Nicolas Zea
CC:
chromium-reviews, GeorgeY, ncarter (slow), Raghu Simha, dyu1, Paweł Hajdan Jr., Ilya Sherman, tim (not reviewing), dhollowa
Visibility:
Public.

Description

[Sync] Add HasChildren() function and use it instead of GetFirstChildId() This avoids some crashes when we try to traverse the list to find the first child and encounter a dangling Id. Remove some spurious virtual keywords. BUG=100907 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=107533

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+144 lines, -42 lines) Patch
M chrome/browser/sync/glue/autofill_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/bookmark_change_processor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/sync/glue/generic_change_processor.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/password_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/session_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/theme_model_associator.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/sync/internal_api/base_node.h View 1 chunk +5 lines, -2 lines 0 comments Download
M chrome/browser/sync/internal_api/base_node.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.h View 1 2 chunks +16 lines, -5 lines 0 comments Download
M chrome/browser/sync/syncable/syncable.cc View 4 chunks +41 lines, -24 lines 0 comments Download
M chrome/browser/sync/syncable/syncable_unittest.cc View 1 1 chunk +66 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
akalin
+tim for review
9 years, 2 months ago (2011-10-25 23:27:13 UTC) #1
akalin
-tim (who's out today), +zez
9 years, 1 month ago (2011-10-26 18:39:47 UTC) #2
akalin
On 2011/10/26 18:39:47, akalin wrote: > -tim (who's out today), +zez er, +zea
9 years, 1 month ago (2011-10-26 18:39:54 UTC) #3
Nicolas Zea
+Richard as FYI, since it seems like we now have three people working on the ...
9 years, 1 month ago (2011-10-26 22:21:35 UTC) #4
rlarocque
LGTM. I want to be clear about what the goal is, though. Is this intended ...
9 years, 1 month ago (2011-10-26 22:43:18 UTC) #5
akalin
On 2011/10/26 22:43:18, rlarocque wrote: > LGTM. > > I want to be clear about ...
9 years, 1 month ago (2011-10-26 22:49:17 UTC) #6
akalin
Landing as soon as trybots pass http://codereview.chromium.org/8396022/diff/1/chrome/browser/sync/syncable/syncable.cc File chrome/browser/sync/syncable/syncable.cc (right): http://codereview.chromium.org/8396022/diff/1/chrome/browser/sync/syncable/syncable.cc#newcode1982 chrome/browser/sync/syncable/syncable.cc:1982: EntryKernel* Directory::GetPossibleFirstChild( On ...
9 years, 1 month ago (2011-10-27 00:19:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/akalin@chromium.org/8396022/4004
9 years, 1 month ago (2011-10-27 03:58:12 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-10-27 05:08:30 UTC) #9
Change committed as 107533

Powered by Google App Engine
This is Rietveld 408576698