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

Issue 99217: Implement ID persistence for bookmarks:... (Closed)

Created:
11 years, 7 months ago by Munjal (Google)
Modified:
9 years ago
Reviewers:
ncarter (slow), sky
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement ID persistence for bookmarks: - Bookmark codec now takes in a ctor argument persist_ids - If it's true, it will serialize IDs of bookmarks when encoding, and deserialize already serialized IDs (if present) when decoding. - During decoding, unique-ify the IDs if they are not unique. - Add unit tests for all new code. Coming up in a separate changelist: - Move ID generation logic to bookmark model, and make it non-static. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=15013

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 22

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+406 lines, -67 lines) Patch
M chrome/browser/bookmarks/bookmark_codec.h View 1 2 3 4 5 chunks +45 lines, -4 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec.cc View 1 2 3 4 9 chunks +71 lines, -9 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec_unittest.cc View 1 2 3 4 5 chunks +161 lines, -11 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.h View 1 2 3 4 2 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 4 2 chunks +22 lines, -8 lines 0 comments Download
A chrome/browser/bookmarks/bookmark_model_test_utils.h View 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/bookmarks/bookmark_model_test_utils.cc View 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 2 3 4 2 chunks +1 line, -26 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/unit/unittests.vcproj View 1 2 3 4 5 chunks +20 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Munjal (Google)
11 years, 7 months ago (2009-04-30 07:34:44 UTC) #1
sky
http://codereview.chromium.org/99217/diff/31/1022 File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/99217/diff/31/1022#newcode207 Line 207: id = id_generator_.GetUniqueID(id); shouldn't this assignment be outside ...
11 years, 7 months ago (2009-04-30 15:53:14 UTC) #2
Munjal (Google)
http://codereview.chromium.org/99217/diff/31/1022 File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/99217/diff/31/1022#newcode207 Line 207: id = id_generator_.GetUniqueID(id); On 2009/04/30 15:53:14, sky wrote: ...
11 years, 7 months ago (2009-04-30 20:48:54 UTC) #3
sky
http://codereview.chromium.org/99217/diff/35/38 File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/99217/diff/35/38#newcode206 Line 206: id = id_generator_.GetUniqueID(id); Doesn't this need to be ...
11 years, 7 months ago (2009-04-30 20:57:12 UTC) #4
Munjal (Google)
http://codereview.chromium.org/99217/diff/35/38 File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/99217/diff/35/38#newcode206 Line 206: id = id_generator_.GetUniqueID(id); On 2009/04/30 20:57:12, sky wrote: ...
11 years, 7 months ago (2009-04-30 22:06:38 UTC) #5
sky
11 years, 7 months ago (2009-04-30 22:15:45 UTC) #6
LGTM

Powered by Google App Engine
This is Rietveld 408576698