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

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: 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/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 555064ed2a9852b7d657d9ed711ff0b7fbed4221..57185db3e1b4ea7c2a0aab438169e0c8bbdf5edd 100644
--- a/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
+++ b/chrome/browser/ui/cocoa/infobars/infobar_controller.mm
@@ -78,7 +78,7 @@ const float kAnimateCloseDuration = 0.12;
forButtonState:image_button_cell::kDisabledState];
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