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

Issue 268001: Makes sure bookmark ids are unique on reading from file. If not unique... (Closed)

Created:
11 years, 2 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
Munjal (Google)
CC:
chromium-reviews_googlegroups.com, Paweł Hajdan Jr., tim (not reviewing), ben+cc_chromium.org
Visibility:
Public.

Description

Makes sure bookmark ids are unique on reading from file. If not unique we reassign them. The particular scenario that can lead to this is when migrating bookmarks out of the db we never reset the ids of the newly created nodes, so that we wrote all to the file with ids of 0. I'm not patching that code so that I have coverage of the unit test, and we'll handle fix up during reading anyway. BUG=24060 TEST=covered by unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28346

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -8 lines) Patch
M chrome/browser/bookmarks/bookmark_codec.h View 1 2 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec.cc View 1 2 3 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 4 chunks +38 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
sky
11 years, 2 months ago (2009-10-07 04:25:46 UTC) #1
Munjal (Google)
http://codereview.chromium.org/268001/diff/1/2 File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/268001/diff/1/2#newcode195 Line 195: ids_.count(id) != 0)) { May be rename ids_missing_ ...
11 years, 2 months ago (2009-10-07 19:31:47 UTC) #2
sky
Sure thing. Renamed to ids_valid_ and new snapshot uploaded. -Scott On 2009/10/07 19:31:47, munjal wrote: ...
11 years, 2 months ago (2009-10-07 19:52:24 UTC) #3
Munjal (Google)
11 years, 2 months ago (2009-10-07 21:17:56 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698