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

Issue 7012005: Revert "Revert 84829 - Initial implementation of "Synced Bookmarks" folder." (Closed)

Created:
9 years, 7 months ago by Yaron
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ncarter (slow), idana, Raghu Simha, Erik does not do reviews, Paweł Hajdan Jr., Aaron Boodman, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Revert "Revert 84829 - Initial implementation of "Synced Bookmarks" folder." Second attempt to land this change. Fixes memory leak (82186), deleted bookmarks (82273) and crash on add bookmarks in windows (82349). Original desscription: Mostly ensures that sycned bookmarks are correctly treated as an immutable folder. Some of the UI-bits maybe incomplete. For example, if enable-synced-bookmarks-folder is set, then synced bookmarks will appear in the bookmark manager page and some components of the UI but it's not on the bookmark bar or anything like that. This change also ensures that the synced bookmark folder matches a sync folder if one is available. BUG= TEST=test bookmark addition/moving around in combination with sync Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86902

Patch Set 1 #

Patch Set 2 : Actually fix memory leak. (lost merge on initial upload) #

Patch Set 3 : Addressed 82349 as well #

Total comments: 3

Patch Set 4 : Slight tweak to starred_url_database to make sync come after other #

Total comments: 10

Patch Set 5 : Start addressing comments #

Total comments: 3

Patch Set 6 : Model is permanent. Added IsVisible to BookmarkNode, to suppress synced node in the ui. #

Patch Set 7 : View code updated, tests updated. #

Patch Set 8 : Fix linux test failure #

Total comments: 34

Patch Set 9 : Responding to latest round of comments. #

Total comments: 4

Patch Set 10 : Synced folder now visible if it has children. #

Total comments: 2

Patch Set 11 : Fix memory allocation of gtk iterator #

Total comments: 2

Patch Set 12 : Remove gtk check. Fix test. #

Patch Set 13 : One more test fix from windows unit_test #

Total comments: 2

Patch Set 14 : Tim's comment + one sync fix. #

Patch Set 15 : One more tweak to loadassociations #

Patch Set 16 : Trying to set .json eol-style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -162 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec.h View 6 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec.cc View 1 2 3 4 5 6 7 8 9 7 chunks +41 lines, -8 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_codec_unittest.cc View 1 2 3 4 5 6 5 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer.cc View 5 chunks +16 lines, -7 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_html_writer_unittest.cc View 5 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.h View 1 2 3 4 5 6 7 8 7 chunks +22 lines, -3 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.cc View 1 2 3 4 5 6 7 8 9 9 chunks +35 lines, -3 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_test_utils.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 2 3 4 5 6 7 8 9 22 chunks +167 lines, -79 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_storage.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_storage.cc View 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/recently_used_folders_combo_model.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_bookmark_helpers.cc View 1 2 3 4 5 6 4 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_bookmarks_module.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -6 lines 0 comments Download
M chrome/browser/history/history_types.h View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/history/starred_url_database.cc View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -2 lines 0 comments Download
M chrome/browser/sync/engine/download_updates_command.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_change_processor.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/sync/glue/bookmark_model_associator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +49 lines, -3 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_bookmark_unittest.cc View 1 2 3 4 5 6 7 8 9 22 chunks +96 lines, -20 lines 0 comments Download
M chrome/browser/sync/protocol/sync.proto View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +16 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_tree_model.cc View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_editor_view_unittest.cc View 1 2 3 4 5 1 chunk +7 lines, -3 lines 0 comments Download
M chrome/common/chrome_switches.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_switches.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/test/data/bookmarks/model_without_sync.json View 1 2 3 4 1 chunk +48 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (0 generated)
Yaron
@sky: Just one comment I wanted to ask for your opinion on at the get-go ...
9 years, 7 months ago (2011-05-12 00:39:55 UTC) #1
sky
http://codereview.chromium.org/7012005/diff/5001/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc File chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc (right): http://codereview.chromium.org/7012005/diff/5001/chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc#newcode492 chrome/browser/ui/views/bookmarks/bookmark_editor_view.cc:492: DCHECK(root_node->child_count() == 3); On 2011/05/12 00:39:55, Yaron wrote: > ...
9 years, 7 months ago (2011-05-12 15:37:19 UTC) #2
sky
I don't quite get what you've scoped behind the command line flag. For example, the ...
9 years, 7 months ago (2011-05-12 16:29:13 UTC) #3
Yaron
Some initial responses. I still need to update the unit test as per your request, ...
9 years, 7 months ago (2011-05-12 18:19:22 UTC) #4
Yaron
http://codereview.chromium.org/7012005/diff/7003/chrome/browser/bookmarks/bookmark_codec_unittest.cc File chrome/browser/bookmarks/bookmark_codec_unittest.cc (right): http://codereview.chromium.org/7012005/diff/7003/chrome/browser/bookmarks/bookmark_codec_unittest.cc#newcode313 chrome/browser/bookmarks/bookmark_codec_unittest.cc:313: ExpectIDsUnique(&decoded_model); My test is failing on this assertion. I ...
9 years, 7 months ago (2011-05-12 20:17:46 UTC) #5
sky
On Thu, May 12, 2011 at 11:19 AM, <yfriedman@chromium.org> wrote: > Some initial responses. I ...
9 years, 7 months ago (2011-05-12 21:02:20 UTC) #6
sky
http://codereview.chromium.org/7012005/diff/7003/chrome/browser/bookmarks/bookmark_codec.cc File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/7012005/diff/7003/chrome/browser/bookmarks/bookmark_codec.cc#newcode172 chrome/browser/bookmarks/bookmark_codec.cc:172: DecodeNode(*static_cast<DictionaryValue*>(synced_folder_value), NULL, Here's where the bug is that leads ...
9 years, 7 months ago (2011-05-12 21:14:32 UTC) #7
Yaron
On 2011/05/12 21:14:32, sky wrote: > http://codereview.chromium.org/7012005/diff/7003/chrome/browser/bookmarks/bookmark_codec.cc > File chrome/browser/bookmarks/bookmark_codec.cc (right): > > http://codereview.chromium.org/7012005/diff/7003/chrome/browser/bookmarks/bookmark_codec.cc#newcode172 > ...
9 years, 7 months ago (2011-05-13 21:39:03 UTC) #8
sky
http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_codec.cc File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_codec.cc#newcode167 chrome/browser/bookmarks/bookmark_codec.cc:167: // them to exist in order to backwards-compatible with ...
9 years, 7 months ago (2011-05-17 15:59:07 UTC) #9
Yaron
http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_codec.cc File chrome/browser/bookmarks/bookmark_codec.cc (right): http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_codec.cc#newcode167 chrome/browser/bookmarks/bookmark_codec.cc:167: // them to exist in order to backwards-compatible with ...
9 years, 7 months ago (2011-05-17 19:17:32 UTC) #10
sky
http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_model.cc File chrome/browser/bookmarks/bookmark_model.cc (right): http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_model.cc#newcode66 chrome/browser/bookmarks/bookmark_model.cc:66: bool BookmarkNode::IsVisible() const { On 2011/05/17 19:17:33, Yaron wrote: ...
9 years, 7 months ago (2011-05-17 20:00:05 UTC) #11
Yaron
http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_model.cc File chrome/browser/bookmarks/bookmark_model.cc (right): http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_model.cc#newcode66 chrome/browser/bookmarks/bookmark_model.cc:66: bool BookmarkNode::IsVisible() const { On 2011/05/17 20:00:05, sky wrote: ...
9 years, 7 months ago (2011-05-17 21:38:37 UTC) #12
Yaron
http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_model.cc File chrome/browser/bookmarks/bookmark_model.cc (right): http://codereview.chromium.org/7012005/diff/4007/chrome/browser/bookmarks/bookmark_model.cc#newcode66 chrome/browser/bookmarks/bookmark_model.cc:66: bool BookmarkNode::IsVisible() const { On 2011/05/17 21:38:37, Yaron wrote: ...
9 years, 7 months ago (2011-05-17 21:40:13 UTC) #13
sky
LGTM I didn't look at any of the sync code. I'm assuming Tim is doing ...
9 years, 7 months ago (2011-05-18 18:45:05 UTC) #14
Yaron
Thanks for the review! Adding pinkerton and erg for OWNERS over the ui/cocoa and ui/gtk ...
9 years, 7 months ago (2011-05-18 18:56:44 UTC) #15
Elliot Glaysher
http://codereview.chromium.org/7012005/diff/14002/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc File chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc (right): http://codereview.chromium.org/7012005/diff/14002/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc#newcode317 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc:317: GtkTreeIter* selected_iter = NULL; I am pretty sure the ...
9 years, 7 months ago (2011-05-18 21:39:29 UTC) #16
Yaron
http://codereview.chromium.org/7012005/diff/14002/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc File chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc (right): http://codereview.chromium.org/7012005/diff/14002/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc#newcode317 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc:317: GtkTreeIter* selected_iter = NULL; On 2011/05/18 21:39:29, Elliot Glaysher ...
9 years, 7 months ago (2011-05-18 23:29:01 UTC) #17
Elliot Glaysher
http://codereview.chromium.org/7012005/diff/13003/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc File chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc (right): http://codereview.chromium.org/7012005/diff/13003/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc#newcode333 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc:333: if (selected_id && selected_iter.user_data != NULL) { I don't ...
9 years, 7 months ago (2011-05-18 23:51:41 UTC) #18
Yaron
http://codereview.chromium.org/7012005/diff/13003/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc File chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc (right): http://codereview.chromium.org/7012005/diff/13003/chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc#newcode333 chrome/browser/ui/gtk/bookmarks/bookmark_editor_gtk.cc:333: if (selected_id && selected_iter.user_data != NULL) { On 2011/05/18 ...
9 years, 7 months ago (2011-05-19 00:05:14 UTC) #19
Elliot Glaysher
On Wed, May 18, 2011 at 5:05 PM, <yfriedman@chromium.org> wrote: > I can remove it ...
9 years, 7 months ago (2011-05-19 18:13:34 UTC) #20
Yaron
On 2011/05/19 18:13:34, Elliot Glaysher wrote: > On Wed, May 18, 2011 at 5:05 PM, ...
9 years, 7 months ago (2011-05-19 21:44:42 UTC) #21
Elliot Glaysher
On 2011/05/19 21:44:42, Yaron wrote: > On 2011/05/19 18:13:34, Elliot Glaysher wrote: > > On ...
9 years, 7 months ago (2011-05-19 22:00:20 UTC) #22
tim (not reviewing)
Bit tough to follow through the review so forgive me if this is already in ...
9 years, 7 months ago (2011-05-20 16:43:09 UTC) #23
Yaron
In any case, if the sync node comes down from the server, we'll sync any ...
9 years, 7 months ago (2011-05-20 17:04:25 UTC) #24
sky
And by suppress I believe you mean, not surface the synced folder in the UI ...
9 years, 7 months ago (2011-05-20 17:52:43 UTC) #25
Yaron
On 2011/05/20 17:52:43, sky wrote: > And by suppress I believe you mean, not surface ...
9 years, 7 months ago (2011-05-20 18:07:23 UTC) #26
Yaron
On 2011/05/20 18:07:23, Yaron wrote: > On 2011/05/20 17:52:43, sky wrote: > > And by ...
9 years, 7 months ago (2011-05-20 22:08:54 UTC) #27
tim (not reviewing)
On 2011/05/20 22:08:54, Yaron wrote: > On 2011/05/20 18:07:23, Yaron wrote: > > On 2011/05/20 ...
9 years, 7 months ago (2011-05-20 23:04:05 UTC) #28
Yaron
Thanks Tim! So with a minor change to have it always return the synced bookmarks ...
9 years, 7 months ago (2011-05-21 01:13:46 UTC) #29
pink (ping after 24hrs)
LGTM on mac stuff
9 years, 7 months ago (2011-05-24 16:09:18 UTC) #30
commit-bot: I haz the power
Presubmit check for 7012005-29004 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-26 16:57:14 UTC) #31
commit-bot: I haz the power
Presubmit check for 7012005-29004 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-26 17:13:11 UTC) #32
commit-bot: I haz the power
Presubmit check for 7012005-37001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-26 17:15:07 UTC) #33
M-A Ruel
On 2011/05/26 17:15:07, commit-bot wrote: > Presubmit check for 7012005-37001 failed and returned exit status ...
9 years, 7 months ago (2011-05-26 17:27:43 UTC) #34
commit-bot: I haz the power
Presubmit check for 7012005-37001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 7 months ago (2011-05-26 17:28:13 UTC) #35
M-A Ruel
Ugh, updating the right config file this time. On 2011/05/26 17:28:13, commit-bot wrote: > Presubmit ...
9 years, 7 months ago (2011-05-26 17:29:16 UTC) #36
commit-bot: I haz the power
Try job failure for 7012005-37001 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33780
9 years, 7 months ago (2011-05-26 17:36:28 UTC) #37
commit-bot: I haz the power
Try job failure for 7012005-37001 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33786
9 years, 7 months ago (2011-05-26 17:57:41 UTC) #38
M-A Ruel
On 2011/05/26 17:57:41, commit-bot wrote: > Try job failure for 7012005-37001 on win: > http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33786 ...
9 years, 7 months ago (2011-05-26 18:13:34 UTC) #39
commit-bot: I haz the power
Try job failure for 7012005-37001 on win: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win&number=33796
9 years, 7 months ago (2011-05-26 18:21:24 UTC) #40
commit-bot: I haz the power
9 years, 7 months ago (2011-05-26 22:07:25 UTC) #41
Change committed as 86902

Powered by Google App Engine
This is Rietveld 408576698