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

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

Issue 10916283: mac: use png otr icon asset instead of pdf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | « chrome/app/theme/theme_resources.grd ('k') | chrome/chrome_dll.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm b/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
index cd988a4410ace892349195066419a56b472cb915..10bc30237cb193f7dccb68e02d0d42cf0128a726 100644
--- a/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
+++ b/chrome/browser/ui/cocoa/browser/avatar_button_controller.mm
@@ -133,8 +133,9 @@ const CGFloat kMenuYOffsetAdjust = 1.0;
[self setView:button];
if (browser_->profile()->IsOffTheRecord()) {
- [self setImage:[self compositeImageWithShadow:
- gfx::GetCachedImageWithName(@"otr_icon.pdf")]];
+ gfx::Image otrIcon =
+ ResourceBundle::GetSharedInstance().GetNativeImageNamed(IDR_OTR_ICON);
+ [self setImage:[self compositeImageWithShadow:otrIcon]];
Robert Sesek 2012/09/13 13:17:55 Use .ToNSImage(). The operator is deprecated.
Nico 2012/09/14 02:08:39 Done.
[self setButtonEnabled:NO];
} else {
[self setButtonEnabled:YES];
« no previous file with comments | « chrome/app/theme/theme_resources.grd ('k') | chrome/chrome_dll.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698