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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 2239443003: [MD User Menu] Removed the tooltips for profile buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 433ef2f58e89637d7abf9515f56fac0d40faccbd..dba8cde6d20c7c153ef804e87eada5b008c9b472 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -2332,7 +2332,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
NSFontAttributeName : [profileButton font]
}];
- if (std::ceil(textSize.width) > availableWidth)
+ if (!switches::IsMaterialDesignUserMenu() &&
+ std::ceil(textSize.width) > availableWidth)
[profileButton setToolTip:[profileButton title]];
return profileButton.autorelease();

Powered by Google App Engine
This is Rietveld 408576698