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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 2636473003: [Mac] Update the Text Color for the Avatar Button (Closed)
Patch Set: Fix for shrike Created 3 years, 11 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/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 3b1bfa8f0fe044751c8aab65f8cabc34136b122f..e6461dd88d0536aa4aca7fbfd09f2031eba146c7 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1639,8 +1639,9 @@ bool IsTabDetachingInFullscreenEnabled() {
// the browser profile's name unless the browser is incognito.
NSView* view;
if ([self shouldUseNewAvatarButton]) {
- avatarButtonController_.reset(
- [[AvatarButtonController alloc] initWithBrowser:browser_.get()]);
+ avatarButtonController_.reset([[AvatarButtonController alloc]
+ initWithBrowser:browser_.get()
+ window:[self window]]);
} else {
avatarButtonController_.reset(
[[AvatarIconController alloc] initWithBrowser:browser_.get()]);

Powered by Google App Engine
This is Rietveld 408576698