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

Unified Diff: chrome/browser/ui/cocoa/download/download_show_all_button.mm

Issue 10933083: Remove deprecated gfx::Image::operator NSImage*(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Comments and merge 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
Index: chrome/browser/ui/cocoa/download/download_show_all_button.mm
diff --git a/chrome/browser/ui/cocoa/download/download_show_all_button.mm b/chrome/browser/ui/cocoa/download/download_show_all_button.mm
index f5aea923df4e0608b1e0393b0acfcbc2baaff48a..81b635405d5a9e0b48a198cc29f67b7b373a679a 100644
--- a/chrome/browser/ui/cocoa/download/download_show_all_button.mm
+++ b/chrome/browser/ui/cocoa/download/download_show_all_button.mm
@@ -16,8 +16,7 @@
- (void)awakeFromNib {
DCHECK([[self cell] isKindOfClass:[DownloadShowAllCell class]]);
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- NSImage* favicon = rb.GetNativeImageNamed(IDR_DOWNLOADS_FAVICON);
- DCHECK(favicon);
+ NSImage* favicon = rb.GetNativeImageNamed(IDR_DOWNLOADS_FAVICON).ToNSImage();
[self setImage:favicon];
}

Powered by Google App Engine
This is Rietveld 408576698