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

Unified Diff: chrome/browser/ui/cocoa/download/download_item_controller.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_controller.mm
diff --git a/chrome/browser/ui/cocoa/download/download_item_controller.mm b/chrome/browser/ui/cocoa/download/download_item_controller.mm
index e0bc05fcd58fa2456510b2dbc0182989ad85dcb7..760d6018c684dd793280a882dab97fa54a1c3276 100644
--- a/chrome/browser/ui/cocoa/download/download_item_controller.mm
+++ b/chrome/browser/ui/cocoa/download/download_item_controller.mm
@@ -181,9 +181,9 @@ class DownloadShelfContextMenuMac : public DownloadShelfContextMenu {
confirmButtonTitle =
base::SysUTF16ToNSString(downloadModel->GetWarningConfirmButtonText());
if (downloadModel->IsMalicious())
- alertIcon = rb.GetNativeImageNamed(IDR_SAFEBROWSING_WARNING);
+ alertIcon = rb.GetNativeImageNamed(IDR_SAFEBROWSING_WARNING).ToNSImage();
else
- alertIcon = rb.GetNativeImageNamed(IDR_WARNING);
+ alertIcon = rb.GetNativeImageNamed(IDR_WARNING).ToNSImage();
DCHECK(alertIcon);
[image_ setImage:alertIcon];
DCHECK(dangerousWarning);

Powered by Google App Engine
This is Rietveld 408576698