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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_mac.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_item_mac.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_mac.mm b/chrome/browser/ui/cocoa/download/download_item_mac.mm
index 741575be43bcb98619d3c670289e57ccdd8e454c..331137867490c406ce602c271f03d1d7f84d4f31 100644
--- a/chrome/browser/ui/cocoa/download/download_item_mac.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_mac.mm
@@ -84,7 +84,7 @@ void DownloadItemMac::LoadIcon() {
FilePath file = download_model_->download()->GetUserVerifiedFilePath();
gfx::Image* icon = icon_manager->LookupIcon(file, IconLoader::ALL);
if (icon) {
- [item_controller_ setIcon:*icon];
+ [item_controller_ setIcon:icon->ToNSImage()];
return;
}
@@ -98,5 +98,5 @@ void DownloadItemMac::OnExtractIconComplete(IconManager::Handle handle,
gfx::Image* icon) {
if (!icon)
return;
- [item_controller_ setIcon:*icon];
+ [item_controller_ setIcon:icon->ToNSImage()];
}

Powered by Google App Engine
This is Rietveld 408576698