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

Issue 1246063003: Sync: Don't set/use Parent ID for non-hierarchical sync data types. (Closed)

Created:
5 years, 5 months ago by stanisc
Modified:
5 years, 4 months ago
Reviewers:
maxbogue, Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, zea+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, plaree+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sync: Don't set/use Parent ID for non-hierarchical sync data types. 1) When creating a new non-hierarchical sync entry bookmarks, don't set Parent ID field anymore. 2) When processing an update for a non-hierarchical sync entry, ignore the parent ID in the update message and set empty parent ID instead. This will prepare the client for a server transition to implicit permanent folders and save some memory by not storing two IDs (~300-350 bytes) per entry. BUG=514854 Committed: https://crrev.com/6d2f3f06756f8157e0ebe5ae2142e706c2837394 Cr-Commit-Position: refs/heads/master@{#341209}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -66 lines) Patch
M chrome/browser/sync/glue/typed_url_change_processor.cc View 2 chunks +1 line, -13 lines 0 comments Download
M chrome/browser/sync/glue/typed_url_model_associator.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_autofill_unittest.cc View 2 chunks +2 lines, -12 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_typed_url_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download
M components/sync_driver/generic_change_processor.cc View 1 chunk +2 lines, -14 lines 0 comments Download
M components/sync_driver/generic_change_processor_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M sync/engine/syncer_proto_util.h View 1 chunk +6 lines, -0 lines 0 comments Download
M sync/engine/syncer_proto_util.cc View 1 chunk +8 lines, -0 lines 2 comments Download
M sync/engine/syncer_unittest.cc View 1 chunk +10 lines, -4 lines 0 comments Download
M sync/engine/syncer_util.cc View 1 chunk +5 lines, -1 line 0 comments Download
M sync/internal_api/sync_backup_manager_unittest.cc View 1 chunk +1 line, -3 lines 0 comments Download
M sync/internal_api/sync_manager_impl_unittest.cc View 3 chunks +0 lines, -6 lines 0 comments Download
M sync/internal_api/sync_rollback_manager_unittest.cc View 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
stanisc
Please take a look.
5 years, 4 months ago (2015-07-28 22:24:11 UTC) #2
Nicolas Zea
+Max FYI LGTM with a nit https://codereview.chromium.org/1246063003/diff/1/sync/engine/syncer_proto_util.cc File sync/engine/syncer_proto_util.cc (right): https://codereview.chromium.org/1246063003/diff/1/sync/engine/syncer_proto_util.cc#newcode541 sync/engine/syncer_proto_util.cc:541: sync_entity.parent_id_string() == "0"; ...
5 years, 4 months ago (2015-07-29 17:58:09 UTC) #4
stanisc
https://codereview.chromium.org/1246063003/diff/1/sync/engine/syncer_proto_util.cc File sync/engine/syncer_proto_util.cc (right): https://codereview.chromium.org/1246063003/diff/1/sync/engine/syncer_proto_util.cc#newcode541 sync/engine/syncer_proto_util.cc:541: sync_entity.parent_id_string() == "0"; On 2015/07/29 17:58:09, Nicolas Zea wrote: ...
5 years, 4 months ago (2015-07-29 21:37:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1246063003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1246063003/1
5 years, 4 months ago (2015-07-30 21:40:34 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 4 months ago (2015-07-30 22:29:00 UTC) #8
commit-bot: I haz the power
5 years, 4 months ago (2015-07-30 22:29:39 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6d2f3f06756f8157e0ebe5ae2142e706c2837394
Cr-Commit-Position: refs/heads/master@{#341209}

Powered by Google App Engine
This is Rietveld 408576698