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

Issue 896073002: Prevent Meta Info from being overwritten due to reordering of entries. (Closed)

Created:
5 years, 10 months ago by stanisc
Modified:
5 years, 10 months ago
Reviewers:
Nicolas Zea, danduong
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, maxbogue+watch_chromium.org, zea+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

Prevent Meta Info from being overwritten due to reordering of entries. This fixes a client side issue that contributes to crbug.com/439110. The code that updates Sync Data with meta info from bookmark model is changed to verify whether the new meta info is equivalent to the original one to avoid doing an unnecessary mutation due to reordering of entries. The reordering occurs due to sorting by key when MetaInfo is retrieved from BookmarkSpecifics in the first place and added to MetaInfoMap. BUG=455291 Committed: https://crrev.com/a2ef17dfc09c595f16c5a097fd1a483acb66a481 Cr-Commit-Position: refs/heads/master@{#314840}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed CR feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -4 lines) Patch
M chrome/browser/sync/glue/bookmark_change_processor.cc View 1 3 chunks +31 lines, -1 line 0 comments Download
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 3 chunks +62 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
stanisc
PTAL. I created a separate crbug for this issue rather than using 439110 to avoid ...
5 years, 10 months ago (2015-02-04 18:35:32 UTC) #2
Nicolas Zea
+Dan FYI LGTM with nits https://codereview.chromium.org/896073002/diff/1/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): https://codereview.chromium.org/896073002/diff/1/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode848 chrome/browser/sync/glue/bookmark_change_processor.cc:848: DCHECK(meta_info_map->size() == (size_t)specifics.meta_info_size()); nit: ...
5 years, 10 months ago (2015-02-04 22:46:21 UTC) #4
stanisc
https://codereview.chromium.org/896073002/diff/1/chrome/browser/sync/glue/bookmark_change_processor.cc File chrome/browser/sync/glue/bookmark_change_processor.cc (right): https://codereview.chromium.org/896073002/diff/1/chrome/browser/sync/glue/bookmark_change_processor.cc#newcode848 chrome/browser/sync/glue/bookmark_change_processor.cc:848: DCHECK(meta_info_map->size() == (size_t)specifics.meta_info_size()); On 2015/02/04 22:46:21, Nicolas Zea wrote: ...
5 years, 10 months ago (2015-02-05 01:40:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/896073002/20001
5 years, 10 months ago (2015-02-05 18:27:25 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-05 18:31:01 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-05 18:31:55 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a2ef17dfc09c595f16c5a097fd1a483acb66a481
Cr-Commit-Position: refs/heads/master@{#314840}

Powered by Google App Engine
This is Rietveld 408576698