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

Unified Diff: chrome/browser/ui/cocoa/location_bar/content_setting_decoration.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/location_bar/content_setting_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
index 5d70e2e940df829159e5f6176a31696d50ca0fe3..9aa55db6fb1834332daea01b42e0a4316e345fb8 100644
--- a/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm
@@ -188,7 +188,8 @@ bool ContentSettingDecoration::UpdateFromWebContents(
// TODO(thakis): We should use pdfs for these icons on OSX.
// http://crbug.com/35847
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- SetImage(rb.GetNativeImageNamed(content_setting_image_model_->get_icon()));
+ SetImage(rb.GetNativeImageNamed(
+ content_setting_image_model_->get_icon()).ToNSImage());
SetToolTip(base::SysUTF8ToNSString(
content_setting_image_model_->get_tooltip()));

Powered by Google App Engine
This is Rietveld 408576698