Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
index 0d5f6502b6409b9511796cc37de54cce09a1c572..fb6d1c043185642920728bbc811fe7d0c0b48ba2 100644 |
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm |
@@ -865,6 +865,11 @@ void RecordAppLaunch(Profile* profile, GURL url) { |
int bookmarkChildren = bookmarkModel_->bookmark_bar_node()->child_count(); |
if (bookmarkChildren > displayedButtonCount_) { |
[offTheSideButton_ setHidden:NO]; |
+ // Set the off the side button as needing re-display. This is needed to |
+ // avoid the button being shown with a black background the first time |
+ // it's displayed. See https://codereview.chromium.org/1630453002/ for |
+ // more context. |
+ [offTheSideButton_ setNeedsDisplay:YES]; |
} else { |
// If we just deleted the last item in an off-the-side menu so the |
// button will be going away, make sure the menu goes away. |