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

Issue 2961723003: [USS] Implement ApplySyncChanges and OnURLVisited/Modified/Deleted. (Closed)

Created:
3 years, 5 months ago by Gang Wu
Modified:
3 years, 4 months ago
Reviewers:
brettw, pavely
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[USS] Implement ApplySyncChanges and OnURLVisited/Modified/Deleted. For deletion purpose, exposing function |GetURLRow| in URLDatabase to HistoryBackend, so TypedURLSyncBridge can look up URLRow by URLID. BUG=726158 Renaming a function. UpdateUrlFromServer->MergeURLWithSync The following 4 functions are ported from TypedUrlSyncableService. DiffVisits ShouldSyncVisit UpdateFromSyncDB->UpdateFromSync CreateOrUpdateSyncNode->UpdateSyncFromLocal Review-Url: https://codereview.chromium.org/2961723003 Cr-Commit-Position: refs/heads/master@{#489789} Committed: https://chromium.googlesource.com/chromium/src/+/7f12ab8632a25615e2d9e8e2593c74c46b6b1f2b

Patch Set 1 #

Total comments: 22

Patch Set 2 : review and rebase #

Total comments: 14

Patch Set 3 : update pavel's review #

Total comments: 4

Patch Set 4 : misunderstand #

Total comments: 5

Patch Set 5 : handle nullptr case in bridge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1650 lines, -138 lines) Patch
M components/history/core/browser/history_backend.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/history/core/browser/history_backend.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download
M components/history/core/browser/typed_url_sync_bridge.h View 1 3 6 chunks +63 lines, -23 lines 0 comments Download
M components/history/core/browser/typed_url_sync_bridge.cc View 1 2 3 4 31 chunks +358 lines, -81 lines 0 comments Download
M components/history/core/browser/typed_url_sync_bridge_unittest.cc View 1 2 3 4 16 chunks +1176 lines, -19 lines 0 comments Download
M components/history/core/browser/typed_url_sync_metadata_database.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M components/history/core/browser/typed_url_sync_metadata_database.cc View 1 4 chunks +13 lines, -15 lines 0 comments Download
M components/sync/model/recording_model_type_change_processor.h View 1 3 chunks +15 lines, -0 lines 0 comments Download
M components/sync/model/recording_model_type_change_processor.cc View 1 3 2 chunks +14 lines, -0 lines 0 comments Download

Messages

Total messages: 63 (47 generated)
Gang Wu
PTAL
3 years, 5 months ago (2017-06-28 22:08:10 UTC) #18
pavely
https://codereview.chromium.org/2961723003/diff/40001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/40001/components/history/core/browser/typed_url_sync_bridge.cc#newcode204 components/history/core/browser/typed_url_sync_bridge.cc:204: for (const EntityChange& entity_change : entity_changes) { You need ...
3 years, 5 months ago (2017-07-06 19:28:30 UTC) #19
Gang Wu
updated https://codereview.chromium.org/2961723003/diff/40001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/40001/components/history/core/browser/typed_url_sync_bridge.cc#newcode204 components/history/core/browser/typed_url_sync_bridge.cc:204: for (const EntityChange& entity_change : entity_changes) { On ...
3 years, 5 months ago (2017-07-10 19:53:25 UTC) #24
pavely
https://codereview.chromium.org/2961723003/diff/60001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/60001/components/history/core/browser/typed_url_sync_bridge.cc#newcode7 components/history/core/browser/typed_url_sync_bridge.cc:7: #include <unordered_set> Why do you need unordered set? https://codereview.chromium.org/2961723003/diff/60001/components/history/core/browser/typed_url_sync_bridge.cc#newcode238 ...
3 years, 5 months ago (2017-07-14 19:15:58 UTC) #25
Gang Wu
Updated, PTAL. https://codereview.chromium.org/2961723003/diff/60001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/60001/components/history/core/browser/typed_url_sync_bridge.cc#newcode7 components/history/core/browser/typed_url_sync_bridge.cc:7: #include <unordered_set> On 2017/07/14 19:15:58, pavely wrote: ...
3 years, 5 months ago (2017-07-17 18:59:37 UTC) #28
pavely
https://codereview.chromium.org/2961723003/diff/100001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/100001/components/history/core/browser/typed_url_sync_bridge.cc#newcode1103 components/history/core/browser/typed_url_sync_bridge.cc:1103: delete entity_data; Could you change return type of this ...
3 years, 5 months ago (2017-07-18 01:17:56 UTC) #36
Gang Wu
misunderstood previously, update to correct way. https://codereview.chromium.org/2961723003/diff/100001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/100001/components/history/core/browser/typed_url_sync_bridge.cc#newcode1103 components/history/core/browser/typed_url_sync_bridge.cc:1103: delete entity_data; On ...
3 years, 5 months ago (2017-07-18 19:11:58 UTC) #41
pavely
https://codereview.chromium.org/2961723003/diff/120001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/120001/components/history/core/browser/typed_url_sync_bridge.cc#newcode274 components/history/core/browser/typed_url_sync_bridge.cc:274: batch->Put(key, CreateEntityData(url_row, visits_vector)); Is it possible for CreateEntityData to ...
3 years, 5 months ago (2017-07-18 22:35:27 UTC) #42
Gang Wu
updated https://codereview.chromium.org/2961723003/diff/120001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/120001/components/history/core/browser/typed_url_sync_bridge.cc#newcode274 components/history/core/browser/typed_url_sync_bridge.cc:274: batch->Put(key, CreateEntityData(url_row, visits_vector)); On 2017/07/18 22:35:27, pavely wrote: ...
3 years, 5 months ago (2017-07-19 16:26:34 UTC) #50
pavely
lgtm https://codereview.chromium.org/2961723003/diff/120001/components/history/core/browser/typed_url_sync_bridge.cc File components/history/core/browser/typed_url_sync_bridge.cc (right): https://codereview.chromium.org/2961723003/diff/120001/components/history/core/browser/typed_url_sync_bridge.cc#newcode274 components/history/core/browser/typed_url_sync_bridge.cc:274: batch->Put(key, CreateEntityData(url_row, visits_vector)); On 2017/07/19 16:26:34, Gang Wu ...
3 years, 5 months ago (2017-07-19 16:57:34 UTC) #51
Gang Wu
Hi Brett, PTAL
3 years, 5 months ago (2017-07-19 17:03:21 UTC) #53
brettw
lgtm
3 years, 5 months ago (2017-07-26 00:01:26 UTC) #54
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/2961723003/160001
3 years, 4 months ago (2017-07-26 18:57:21 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/510150)
3 years, 4 months ago (2017-07-26 20:24:11 UTC) #58
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/2961723003/160001
3 years, 4 months ago (2017-07-26 22:57:12 UTC) #60
commit-bot: I haz the power
3 years, 4 months ago (2017-07-26 23:05:43 UTC) #63
Message was sent while issue was closed.
Committed patchset #5 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/7f12ab8632a25615e2d9e8e2593c...

Powered by Google App Engine
This is Rietveld 408576698