Ash: Fix separator next to 'Other bookmarks' button

The bookmarks bar view draws a separator that looks odd with Ash assets.  Just hide it for Ash (similar to Mac appearance).

BUG=120049
TEST=visual, create bookmarks in the Other bookmarks folder, turn on the bookmarks bar, verify there's no weird separator to the left of 'Other bookmarks'


Review URL: http://codereview.chromium.org/9857003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128917 0039d316-1c4b-4281-b951-d872f2087c98
parent f60501b2
......@@ -1134,6 +1134,11 @@ void BookmarkBarView::Init() {
bookmarks_separator_view_ = new ButtonSeparatorView();
AddChildView(bookmarks_separator_view_);
#if defined(USE_ASH)
// Ash does not paint the bookmarks separator line because it looks odd on
// the flat background. We keep it present for layout, but don't draw it.
bookmarks_separator_view_->SetVisible(false);
#endif
instructions_ = new BookmarkBarInstructionsView(this);
AddChildView(instructions_);
......@@ -1537,7 +1542,9 @@ void BookmarkBarView::UpdateOtherBookmarksVisibility() {
if (has_other_children == other_bookmarked_button_->visible())
return;
other_bookmarked_button_->SetVisible(has_other_children);
#if !defined(USE_ASH)
bookmarks_separator_view_->SetVisible(has_other_children);
#endif
Layout();
SchedulePaint();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment