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

Issue 11533008: Use delete journal to remove bookmarks that are already deleted in sync model (Closed)

Created:
8 years ago by haitaol1
Modified:
7 years, 11 months ago
CC:
chromium-reviews, akalin, estade+watch_chromium.org, Raghu Simha, Albert Bodenhamer, dbeam+watch-autofill_chromium.org, Aaron Boodman, dyu1, dhollowa+watch_chromium.org, chromium-apps-reviews_chromium.org, Ilya Sherman
Visibility:
Public.

Description

Use delete journal to remove bookmarks that are already deleted in sync model before assocating bookmark model and sync model. BUG=121928 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=178157

Patch Set 1 #

Total comments: 1

Patch Set 2 : unit tests and added delete_journal.h/cc #

Patch Set 3 : sync with 11441026 #

Patch Set 4 : Rebase #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 22

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -32 lines) Patch
M chrome/browser/sync/glue/bookmark_model_associator.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +112 lines, -10 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 4 chunks +89 lines, -2 lines 0 comments Download
A sync/internal_api/delete_journal.cc View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A sync/internal_api/public/delete_journal.h View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
M sync/internal_api/public/test/test_user_share.h View 1 2 chunks +5 lines, -0 lines 0 comments Download
M sync/internal_api/test/test_user_share.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -0 lines 0 comments Download
M sync/sync.gyp View 1 2 3 4 5 6 7 2 chunks +2 lines, -0 lines 0 comments Download
M sync/syncable/delete_journal.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M sync/syncable/directory.h View 1 2 3 4 5 6 4 chunks +4 lines, -2 lines 0 comments Download
M sync/syncable/mutable_entry.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -9 lines 0 comments Download
M sync/test/engine/test_directory_setter_upper.h View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M sync/test/engine/test_directory_setter_upper.cc View 1 2 3 4 5 6 1 chunk +24 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
haitaol1
Tim: I'm using BaseTransaction as bridge between Directory and model associator to pass delete journals ...
8 years ago (2012-12-11 18:25:41 UTC) #1
tim (not reviewing)
Taking a look at the two reviews, just trying to understand the full picture at ...
8 years ago (2012-12-11 19:58:33 UTC) #2
haitaol1
Delete journal is only maintained for the data types that support it. I added IsDeleteJournalEnabled() ...
8 years ago (2012-12-12 17:40:00 UTC) #3
haitaol1
ping
7 years, 11 months ago (2013-01-08 17:45:41 UTC) #4
tim (not reviewing)
On 2013/01/08 17:45:41, haitaol1 wrote: > ping DeleteJournal is currently in sync/syncable, right? Do we ...
7 years, 11 months ago (2013-01-10 19:19:31 UTC) #5
haitaol1
But even with sync api, a bridge is still needed to return journal from syncable ...
7 years, 11 months ago (2013-01-10 22:00:12 UTC) #6
tim (not reviewing)
Hmm... can't we construct a SyncChangeList? On Thu, Jan 10, 2013 at 2:00 PM, <haitaol@chromium.org> ...
7 years, 11 months ago (2013-01-10 22:02:20 UTC) #7
haitaol1
We can pass delete journal using SyncDataList after SyncData supports bookmarks. But we still need ...
7 years, 11 months ago (2013-01-10 23:16:25 UTC) #8
tim (not reviewing)
https://codereview.chromium.org/11533008/diff/24002/chrome/browser/sync/glue/bookmark_model_associator.cc File chrome/browser/sync/glue/bookmark_model_associator.cc (right): https://codereview.chromium.org/11533008/diff/24002/chrome/browser/sync/glue/bookmark_model_associator.cc#newcode88 chrome/browser/sync/glue/bookmark_model_associator.cc:88: // Finds best matching node for the given sync ...
7 years, 11 months ago (2013-01-14 23:32:48 UTC) #9
haitaol1
https://codereview.chromium.org/11533008/diff/24002/chrome/browser/sync/glue/bookmark_model_associator.cc File chrome/browser/sync/glue/bookmark_model_associator.cc (right): https://codereview.chromium.org/11533008/diff/24002/chrome/browser/sync/glue/bookmark_model_associator.cc#newcode88 chrome/browser/sync/glue/bookmark_model_associator.cc:88: // Finds best matching node for the given sync ...
7 years, 11 months ago (2013-01-15 19:44:31 UTC) #10
tim (not reviewing)
LGTM
7 years, 11 months ago (2013-01-18 00:29:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haitaol@chromium.org/11533008/60001
7 years, 11 months ago (2013-01-22 21:16:50 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-22 23:53:57 UTC) #13
Message was sent while issue was closed.
Change committed as 178157

Powered by Google App Engine
This is Rietveld 408576698