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

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

Issue 2007103002: [Mac][Material Design] Restore apps page shortcut icon in bookmarks bar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix nit. Created 4 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 | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm ('k') | 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_button.mm
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
index 609cba93ac462c197b010a41d95a653d1d777e1f..d950688bea745724d29cd38b477bc62205f52430 100644
--- a/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
+++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_button.mm
@@ -453,6 +453,12 @@ BookmarkButton* gDraggedButton = nil; // Weak
BookmarkBarView* bookmarkBarView =
base::mac::ObjCCastStrict<BookmarkBarView>([self superview]);
BookmarkBarController* bookmarkBarController = [bookmarkBarView controller];
+
+ // The apps page shortcut button does not need to be updated.
+ if (self == [bookmarkBarController appsPageShortcutButton]) {
+ return;
+ }
+
BOOL darkTheme = [[self window] hasDarkTheme];
NSImage* theImage = nil;
// Make sure the "off the side" button gets the chevron icon.
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698