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

Unified Diff: chrome/browser/ui/gtk/location_bar_view_gtk.cc

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/gtk/location_bar_view_gtk.cc
diff --git a/chrome/browser/ui/gtk/location_bar_view_gtk.cc b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
index 675b4d1a7676d6851a7640fa176a97d8e62bb7d6..39ba4a223ff2cff1e90cc5b3a866f59478f3e10d 100644
--- a/chrome/browser/ui/gtk/location_bar_view_gtk.cc
+++ b/chrome/browser/ui/gtk/location_bar_view_gtk.cc
@@ -1321,11 +1321,10 @@ void LocationBarViewGtk::SetKeywordLabel(const string16& keyword) {
if (is_extension_keyword) {
const TemplateURL* template_url =
template_url_service->GetTemplateURLForKeyword(keyword);
- const SkBitmap& bitmap = profile->GetExtensionService()->
+ gfx::Image image = profile->GetExtensionService()->
GetOmniboxIcon(template_url->GetExtensionId());
- GdkPixbuf* pixbuf = gfx::GdkPixbufFromSkBitmap(bitmap);
- gtk_image_set_from_pixbuf(GTK_IMAGE(tab_to_search_magnifier_), pixbuf);
- g_object_unref(pixbuf);
+ gtk_image_set_from_pixbuf(GTK_IMAGE(tab_to_search_magnifier_),
+ image.ToGdkPixbuf());
} else {
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
gtk_image_set_from_pixbuf(GTK_IMAGE(tab_to_search_magnifier_),

Powered by Google App Engine
This is Rietveld 408576698