Index: chrome/browser/gtk/location_bar_view_gtk.h |
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h |
index 3fe531a08af523ac26e6ddc66350c8cd6d1f70d8..32a5f9e4c8debf835f6165e2fca6244b5dfaf11c 100644 |
--- a/chrome/browser/gtk/location_bar_view_gtk.h |
+++ b/chrome/browser/gtk/location_bar_view_gtk.h |
@@ -134,6 +134,12 @@ class LocationBarViewGtk : public AutocompleteEditController, |
// The icons representing different states for the page action. |
std::vector<GdkPixbuf*> pixbufs_; |
+ // A cache of the last dynamically generated bitmap and the pixbuf that |
+ // corresponds to it. We keep track of both so we can free old pixbufs as |
+ // their icons are replaced. |
+ SkBitmap* last_icon_skbitmap_; |
+ GdkPixbuf* last_icon_pixbuf_; |
+ |
// The object that is waiting for the image loading to complete |
// asynchronously. It will delete itself once it is done. |
ImageLoadingTracker* tracker_; |