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

Unified Diff: chrome/browser/ui/cocoa/infobars/infobar_controller.mm

Issue 10933083: Remove deprecated gfx::Image::operator NSImage*(). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
Index: chrome/browser/ui/cocoa/infobars/infobar_controller.mm
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
index b982aa96caea3ae000d4df116c96d2dc9e180490..8005c8bed088cb955df384bd4823f11b8cd3a09f 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
@@ -66,7 +66,7 @@ const float kAnimateCloseDuration = 0.12;
- (void)awakeFromNib {
DCHECK(delegate_);
if (delegate_->GetIcon()) {
- [image_ setImage:*(delegate_->GetIcon())];
+ [image_ setImage:delegate_->GetIcon()->ToNSImage()];
} else {
// No icon, remove it from the view and grow the textfield to include the
// space.

Powered by Google App Engine
This is Rietveld 408576698