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

Unified Diff: chrome/browser/gtk/list_store_favicon_loader.cc

Issue 165194: GTK: Use stock icons for bookmark folder and default favicon.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
« no previous file with comments | « chrome/browser/gtk/list_store_favicon_loader.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/list_store_favicon_loader.cc
===================================================================
--- chrome/browser/gtk/list_store_favicon_loader.cc (revision 22744)
+++ chrome/browser/gtk/list_store_favicon_loader.cc (working copy)
@@ -7,6 +7,7 @@
#include "app/resource_bundle.h"
#include "base/gfx/gtk_util.h"
#include "base/gfx/png_decoder.h"
+#include "chrome/browser/gtk/bookmark_utils_gtk.h"
#include "chrome/browser/profile.h"
#include "grit/app_resources.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -16,11 +17,14 @@
Profile* profile, CancelableRequestConsumer* consumer)
: list_store_(list_store), favicon_col_(favicon_col),
favicon_handle_col_(favicon_handle_col), profile_(profile),
- consumer_(consumer) {
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- default_favicon_ = rb.GetPixbufNamed(IDR_DEFAULT_FAVICON);
+ consumer_(consumer),
+ default_favicon_(bookmark_utils::GetDefaultFavicon(true)) {
}
+ListStoreFavIconLoader::~ListStoreFavIconLoader() {
+ g_object_unref(default_favicon_);
+}
+
void ListStoreFavIconLoader::LoadFaviconForRow(const GURL& url,
GtkTreeIter* iter) {
HistoryService* history =
« no previous file with comments | « chrome/browser/gtk/list_store_favicon_loader.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698