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

Unified Diff: chrome/browser/ui/views/profiles/profile_chooser_view.cc

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
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_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/views/profiles/profile_chooser_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_chooser_view.cc b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
index 395783601cd5ca91555ac46453564043d446bc6a..9a1400afd519b4b253b12770ba69c0a90839ae7d 100644
--- a/chrome/browser/ui/views/profiles/profile_chooser_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_chooser_view.cc
@@ -198,6 +198,10 @@ class BackgroundColorHoverButton : public views::LabelButton {
views::Border::CreateEmptyBorder(0, button_margin, 0, button_margin));
SetFocusForPlatform();
set_request_focus_on_press(true);
+
+ if (switches::IsMaterialDesignUserMenu()) {
+ label()->SetHandlesTooltips(false);
sky 2016/08/11 03:25:35 The other option is to not set a tooltip. Not sett
Jane 2016/08/11 14:59:04 I don't need to set the tooltip for the MD case, a
+ }
}
BackgroundColorHoverButton(views::ButtonListener* listener,
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698