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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm

Issue 10829370: Make search icon in omnibox results hidpi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/omnibox/omnibox_popup_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
index 95bc264ffb79048825c1073e15b52b14cab2edc8..3b25366b6b3b75656f3cc092f82526722a92cd52 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_view_mac.mm
@@ -399,9 +399,9 @@ void OmniboxPopupViewMac::PositionPopup(const CGFloat matrixHeight) {
}
NSImage* OmniboxPopupViewMac::ImageForMatch(const AutocompleteMatch& match) {
- const SkBitmap* bitmap = model_->GetIconIfExtensionMatch(match);
- if (bitmap)
- return gfx::SkBitmapToNSImage(*bitmap);
+ gfx::Image image = model_->GetIconIfExtensionMatch(match);
+ if (!image.IsEmpty())
+ return image.AsNSImage();
const int resource_id = match.starred ?
IDR_OMNIBOX_STAR : AutocompleteMatch::TypeToIcon(match.type);

Powered by Google App Engine
This is Rietveld 408576698