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

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

Issue 10377122: Convert GdkPixbufFromSkBitmap and GdkPixbufToSkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc ('k') | chrome/browser/ui/gtk/browser_titlebar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc
diff --git a/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc b/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc
index b982ff0bf32e853ef31d4551a24dfdcf4d6899ab..98337fb275475ba52e7a9a45bd0260ec8cc12fc5 100644
--- a/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc
+++ b/chrome/browser/ui/gtk/browser_actions_toolbar_gtk.cc
@@ -130,7 +130,7 @@ class BrowserActionButton : public content::NotificationObserver,
ui::ResourceBundle::GetSharedInstance().GetImageNamed(
IDR_EXTENSIONS_FAVICON).ToSkBitmap();
default_skbitmap_ = *bm;
- default_icon_ = gfx::GdkPixbufFromSkBitmap(bm);
+ default_icon_ = gfx::GdkPixbufFromSkBitmap(*bm);
}
UpdateState();
@@ -227,7 +227,7 @@ class BrowserActionButton : public content::NotificationObserver,
SkBitmap image = extension_->browser_action()->GetIcon(tab_id);
if (!image.isNull()) {
GdkPixbuf* previous_gdk_icon = tab_specific_icon_;
- tab_specific_icon_ = gfx::GdkPixbufFromSkBitmap(&image);
+ tab_specific_icon_ = gfx::GdkPixbufFromSkBitmap(image);
SetImage(tab_specific_icon_);
if (previous_gdk_icon)
g_object_unref(previous_gdk_icon);
« no previous file with comments | « chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc ('k') | chrome/browser/ui/gtk/browser_titlebar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698