diff options
Diffstat (limited to 'chrome/browser/cocoa/location_bar_view_mac.mm')
-rw-r--r-- | chrome/browser/cocoa/location_bar_view_mac.mm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/location_bar_view_mac.mm b/chrome/browser/cocoa/location_bar_view_mac.mm index 721fc7a..37a55c2 100644 --- a/chrome/browser/cocoa/location_bar_view_mac.mm +++ b/chrome/browser/cocoa/location_bar_view_mac.mm @@ -488,7 +488,8 @@ void LocationBarViewMac::SetIcon(int resource_id) { !edit_view_->model()->is_keyword_hint()) { location_icon_view_.SetVisible(false); } else { - location_icon_view_.SetIcon(resource_id); + NSImage* image = AutocompleteEditViewMac::ImageForResource(resource_id); + location_icon_view_.SetImage(image); location_icon_view_.SetVisible(true); SetSecurityLabel(); } @@ -658,11 +659,11 @@ LocationBarViewMac::StarIconView::StarIconView(CommandUpdater* command_updater) void LocationBarViewMac::StarIconView::SetStarred(bool starred) { if (starred) { - SetIcon(IDR_OMNIBOX_STAR_LIT); + SetImage(AutocompleteEditViewMac::ImageForResource(IDR_OMNIBOX_STAR_LIT)); tooltip_.reset( [l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_STARRED) retain]); } else { - SetIcon(IDR_OMNIBOX_STAR); + SetImage(AutocompleteEditViewMac::ImageForResource(IDR_OMNIBOX_STAR)); tooltip_.reset( [l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_STAR) retain]); } |