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

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

Issue 2316853002: [Material][Mac] Action on Mouse Down for User Account Button (Closed)
Patch Set: Revert dialog pixel adjustment Created 4 years, 3 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/profiles/avatar_button_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
index 6163f015f1daf352ec8af7f7bcdc90c51664d6d1..2305f8afd3fcd5a1cbbeaa76c2d10b32c51b5bcb 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
@@ -224,6 +224,9 @@ const CGFloat kMaterialSignedOutWidthPadding = 2;
[avatarButton setAction:@selector(buttonClicked:)];
[avatarButton setRightAction:@selector(buttonRightClicked:)];
+ if (ui::MaterialDesignController::IsModeMaterial())
+ [avatarButton sendActionOn:NSLeftMouseDownMask];
+
// Check if the account already has an authentication or sync error and
// initialize the avatar button UI.
hasError_ = profileObserver_->HasAvatarError();
« 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