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

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

Issue 212603011: Newly created profiles should have the grey silhouette as avatar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase reviewed Created 6 years, 8 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/avatar_icon_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_icon_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_icon_controller.mm
index 84d5aec83d410226c1a41c8b5310a662ca281aa0..a35b80173409b96d0b4f9d8d47602a1f0b0a6be3 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_icon_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_icon_controller.mm
@@ -101,8 +101,8 @@ const CGFloat kAvatarLabelRightSpacing = 2;
Profile* profile = browser_->profile();
if (profile->IsOffTheRecord() || profile->IsGuestSession()) {
- const int icon_id = profile->IsGuestSession() ? IDR_LOGIN_GUEST :
- IDR_OTR_ICON;
+ const int icon_id = profile->IsGuestSession() ?
+ profiles::GetPlaceholderAvatarIconResourceID() : IDR_OTR_ICON;
NSImage* icon = ResourceBundle::GetSharedInstance().GetNativeImageNamed(
icon_id).ToNSImage();
[self setImage:[self compositeImageWithShadow:icon]];

Powered by Google App Engine
This is Rietveld 408576698