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

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

Issue 2743393002: Properly pin the incognito avatar. (Closed)
Patch Set: Created 3 years, 9 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/browser_window_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/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 c2f96b3e48b20d5c43a7456c56823bed8676d2f6..0be5d2302722d329f978ce3ef78769728eae0ffe 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm
@@ -18,7 +18,6 @@
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#import "chrome/browser/ui/cocoa/browser_window_controller.h"
-#include "chrome/browser/ui/cocoa/l10n_util.h"
#import "chrome/browser/ui/cocoa/profiles/avatar_button.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/grit/theme_resources.h"
@@ -184,10 +183,6 @@ const CGFloat kFrameColorDarkUpperBound = 0.33;
[[avatarButton cell] setHighlightsBy:NSNoCellMask];
[avatarButton setBordered:YES];
- if (cocoa_l10n_util::ShouldFlipWindowControlsInRTL())
- [avatarButton setAutoresizingMask:NSViewMaxXMargin | NSViewMinYMargin];
- else
- [avatarButton setAutoresizingMask:NSViewMinXMargin | NSViewMinYMargin];
[avatarButton setTarget:self];
[avatarButton setAction:@selector(buttonClicked:)];
[avatarButton setRightAction:@selector(buttonClicked:)];
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698