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

Issue 27262: Wires up sorting of bookmarks to the 'organize menu' in the bookmark... (Closed)

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

Description

Wires up sorting of bookmarks to the 'organize menu' in the bookmark manager (Glen says no context menus for now). All BookmarkModelObservers have been updated appropriately. BUG=1750 TEST=bring up the bookmark manager and try the 'Reorder by title' menu item, make sure it works and I didn't screw up anything around it. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10633

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+199 lines, -17 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_context_menu.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_context_menu.cc View 5 chunks +25 lines, -0 lines 2 comments Download
M chrome/browser/bookmarks/bookmark_folder_tree_model.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_folder_tree_model.cc View 1 chunk +34 lines, -0 lines 2 comments Download
M chrome/browser/bookmarks/bookmark_folder_tree_model_unittest.cc View 7 chunks +44 lines, -10 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_model_unittest.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_table_model.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_table_model.cc View 2 chunks +18 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_table_model_unittest.cc View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/importer/importer.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 chunk +21 lines, -0 lines 2 comments Download
M chrome/browser/views/bookmark_editor_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/bookmark_editor_view.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/views/bookmark_manager_view.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/views/tree_model.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/views/tree_node_model.h View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sky
11 years, 10 months ago (2009-02-27 03:51:19 UTC) #1
ncarter (slow)
LGTM unless any of the following comments cause you to make more than cosmetic changes. ...
11 years, 10 months ago (2009-02-27 21:22:34 UTC) #2
sky
11 years, 10 months ago (2009-02-27 21:42:06 UTC) #3
http://codereview.chromium.org/27262/diff/1/12
File chrome/browser/bookmarks/bookmark_context_menu.cc (right):

http://codereview.chromium.org/27262/diff/1/12#newcode515
Line 515: return parent_ && parent_->GetParent();
On 2009/02/27 21:22:34, nick wrote:
> If the GetParent() check is to protect against root node children, it might be
> clearer to check (parent_ != model_->root_node()) like we do earlier in the
> function.

Done.

http://codereview.chromium.org/27262/diff/1/16
File chrome/browser/bookmarks/bookmark_folder_tree_model.cc (right):

http://codereview.chromium.org/27262/diff/1/16#newcode144
Line 144: bn_to_folder[folder_node->GetChild(i)->value] =
folder_node->GetChild(i);
On 2009/02/27 21:22:34, nick wrote:
> If this map always existed (for all FolderNodes), what would be the downside? 
> It could be used to trivially implement GetFolderNodeForBookmarkNode.
> 
> That being said, I am also OK with the way things are here.

That's a good idea. I'm going to hold off at this time though so that we don't
have to go another round.

http://codereview.chromium.org/27262/diff/1/7
File chrome/browser/views/bookmark_bar_view.cc (right):

http://codereview.chromium.org/27262/diff/1/7#newcode1333
Line 1333: BookmarkNode* node) {
On 2009/02/27 21:22:34, nick wrote:
> Please confirm that it's OK to not worry about the throbbing state here
(because
> the bubble disappears when it loses focus?)

I added a stop, but no start with a description of why.

Powered by Google App Engine
This is Rietveld 408576698