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

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed)

Created:
8 years, 1 month ago by haitaol1
Modified:
8 years, 1 month ago
CC:
chromium-reviews, Raghu Simha, haitaol1, akalin, tim (not reviewing)
Visibility:
Public.

Description

Populate versions on individual nodes in sync model and native bookmark model. Update transaction versions of changed sync models and entries in syncable::WriteTransaction after change delegate calculates changes and returns handles of changed entries. For syncer changes, updated version is passed to change processor and set on native model and nodes. For sync API changes, model processor queries for new version and set on native model and nodes after write transaction closes. BUG=154858 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=167061

Patch Set 1 #

Patch Set 2 : Restore heap unallocatability of write transaction #

Total comments: 8

Patch Set 3 : per tim's comments #

Patch Set 4 : lock dir #

Total comments: 30

Patch Set 5 : per zea's comments #

Patch Set 6 : #

Patch Set 7 : tests #

Total comments: 10

Patch Set 8 : #

Total comments: 26

Patch Set 9 : per tim's comments #

Patch Set 10 : #

Patch Set 11 : fix asterik #

Patch Set 12 : #

Patch Set 13 : sync to head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+673 lines, -231 lines) Patch
M chrome/browser/sync/glue/bookmark_change_processor.h View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_change_processor.cc View 1 2 3 4 5 6 7 8 9 chunks +199 lines, -137 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 2 3 4 5 6 7 8 2 chunks +27 lines, -18 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +122 lines, -3 lines 0 comments Download
M sync/internal_api/public/write_transaction.h View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -1 line 0 comments Download
M sync/internal_api/sync_manager_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +12 lines, -11 lines 0 comments Download
M sync/internal_api/sync_manager_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +39 lines, -42 lines 0 comments Download
M sync/internal_api/write_transaction.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M sync/syncable/directory_backing_store.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/directory_backing_store.cc View 1 2 3 4 5 6 3 chunks +20 lines, -1 line 0 comments Download
M sync/syncable/directory_backing_store_unittest.cc View 1 2 3 4 5 6 5 chunks +127 lines, -0 lines 0 comments Download
M sync/syncable/directory_change_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -2 lines 0 comments Download
M sync/syncable/entry_kernel.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/syncable_columns.h View 1 chunk +1 line, -0 lines 0 comments Download
M sync/syncable/syncable_enum_conversions.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M sync/syncable/syncable_unittest.cc View 1 2 3 4 5 6 2 chunks +5 lines, -2 lines 0 comments Download
M sync/syncable/write_transaction.h View 1 2 3 4 5 6 7 8 9 2 chunks +18 lines, -0 lines 0 comments Download
M sync/syncable/write_transaction.cc View 1 2 3 4 5 6 7 8 9 3 chunks +43 lines, -3 lines 0 comments Download
M sync/test/null_directory_change_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -2 lines 0 comments Download
M sync/test/null_directory_change_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +19 lines, -6 lines 0 comments Download
M sync/test/test_directory_backing_store.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
haitaol1
time: please take a look and let me know if you are fine with the ...
8 years, 1 month ago (2012-10-30 22:18:41 UTC) #1
haitaol1
Make WriteTransaction not allocatable on heap again. PTAL
8 years, 1 month ago (2012-10-31 22:21:28 UTC) #2
tim (not reviewing)
http://codereview.chromium.org/11341048/diff/3001/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): http://codereview.chromium.org/11341048/diff/3001/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode117 chrome/browser/sync/glue/bookmark_change_processor.cc:117: int64 old_version; Should initialize this, if not to zero, ...
8 years, 1 month ago (2012-11-01 18:31:35 UTC) #3
haitaol1
http://codereview.chromium.org/11341048/diff/3001/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): http://codereview.chromium.org/11341048/diff/3001/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode117 chrome/browser/sync/glue/bookmark_change_processor.cc:117: int64 old_version; On 2012/11/01 18:31:36, timsteele wrote: > Should ...
8 years, 1 month ago (2012-11-02 17:57:11 UTC) #4
Nicolas Zea
http://codereview.chromium.org/11341048/diff/10002/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): http://codereview.chromium.org/11341048/diff/10002/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode186 chrome/browser/sync/glue/bookmark_change_processor.cc:186: // NOTE(haitaol): Siblings of added node in sync DB ...
8 years, 1 month ago (2012-11-02 21:02:25 UTC) #5
haitaol1
Still need to add tests http://codereview.chromium.org/11341048/diff/10002/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): http://codereview.chromium.org/11341048/diff/10002/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode186 chrome/browser/sync/glue/bookmark_change_processor.cc:186: // NOTE(haitaol): Siblings of ...
8 years, 1 month ago (2012-11-02 22:58:18 UTC) #6
haitaol1
Added test to verify transaction version update of bookmark changes. PTAL
8 years, 1 month ago (2012-11-06 22:42:07 UTC) #7
Nicolas Zea
http://codereview.chromium.org/11341048/diff/18002/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File chrome/browser/sync/profile_sync_service_bookmark_unittest.cc (right): http://codereview.chromium.org/11341048/diff/18002/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc#newcode1666 chrome/browser/sync/profile_sync_service_bookmark_unittest.cc:1666: do children get updated when a parent is modified? ...
8 years, 1 month ago (2012-11-07 00:20:30 UTC) #8
haitaol1
http://codereview.chromium.org/11341048/diff/18002/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File chrome/browser/sync/profile_sync_service_bookmark_unittest.cc (right): http://codereview.chromium.org/11341048/diff/18002/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc#newcode1666 chrome/browser/sync/profile_sync_service_bookmark_unittest.cc:1666: On 2012/11/07 00:20:31, Nicolas Zea wrote: > do children ...
8 years, 1 month ago (2012-11-07 22:20:25 UTC) #9
tim (not reviewing)
https://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): https://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode324 chrome/browser/sync/glue/bookmark_change_processor.cc:324: int64 new_version = -1; This is used in a ...
8 years, 1 month ago (2012-11-08 17:38:49 UTC) #10
Nicolas Zea
http://codereview.chromium.org/11341048/diff/18002/sync/syncable/syncable_unittest.cc File sync/syncable/syncable_unittest.cc (right): http://codereview.chromium.org/11341048/diff/18002/sync/syncable/syncable_unittest.cc#newcode1679 sync/syncable/syncable_unittest.cc:1679: update.Put(SPECIFICS, specifics); On 2012/11/07 22:20:25, haitaol1 wrote: > So ...
8 years, 1 month ago (2012-11-08 19:05:08 UTC) #11
haitaol1
http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode324 chrome/browser/sync/glue/bookmark_change_processor.cc:324: int64 new_version = -1; On 2012/11/08 17:38:49, timsteele wrote: ...
8 years, 1 month ago (2012-11-08 19:06:53 UTC) #12
haitaol1
http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File chrome/browser/sync/profile_sync_service_bookmark_unittest.cc (right): http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc#newcode1613 chrome/browser/sync/profile_sync_service_bookmark_unittest.cc:1613: BookmarkNodeVersionMap *node_versions) { On 2012/11/08 19:05:08, Nicolas Zea wrote: ...
8 years, 1 month ago (2012-11-08 19:18:47 UTC) #13
Nicolas Zea
Tim's comments aside, LGTM http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File chrome/browser/sync/profile_sync_service_bookmark_unittest.cc (right): http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc#newcode1706 chrome/browser/sync/profile_sync_service_bookmark_unittest.cc:1706: EXPECT_EQ(initial_versions[model_->root_node()->id()] + 2, On 2012/11/08 ...
8 years, 1 month ago (2012-11-08 19:26:00 UTC) #14
haitaol1
http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc File chrome/browser/sync/profile_sync_service_bookmark_unittest.cc (right): http://codereview.chromium.org/11341048/diff/15005/chrome/browser/sync/profile_sync_service_bookmark_unittest.cc#newcode1706 chrome/browser/sync/profile_sync_service_bookmark_unittest.cc:1706: EXPECT_EQ(initial_versions[model_->root_node()->id()] + 2, On 2012/11/08 19:26:00, Nicolas Zea wrote: ...
8 years, 1 month ago (2012-11-08 19:44:25 UTC) #15
tim (not reviewing)
LGTM
8 years, 1 month ago (2012-11-08 19:47:41 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/11341048/24001
8 years, 1 month ago (2012-11-10 02:02:01 UTC) #17
commit-bot: I haz the power
8 years, 1 month ago (2012-11-10 05:20:12 UTC) #18
Change committed as 167061

Powered by Google App Engine
This is Rietveld 408576698