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

Unified Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm

Issue 2867823002: [Mac] Hide bookmark bar empty view by default (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
index 3aaa4754f88c43c945e63f623fa39f3244947001..b9e788cf132834058f1f08ac2ba96f15cc6eac51 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.mm
@@ -108,6 +108,11 @@ static const CGFloat kTextFieldTrailingPadding = 5;
[importBookmarksButton_ setFont:smallSystemFont];
[importBookmarksButton_ sizeToFit];
+ // Hide by default so these don't flash if it takes a while for the bookmark
+ // model to load.
+ [noItemTextField_ setHidden:YES];
+ [importBookmarksButton_ setHidden:YES];
+
[self addSubview:noItemTextField_];
[self addSubview:importBookmarksButton_];
[self registerForNotificationsAndDraggedTypes];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698