From 0dc1f496cd4ddd8a55f6e5d12d0b7ee38411239f Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Wed, 26 Aug 2009 22:17:00 +0000 Subject: Fix startup regression in gtk theme mode. Don't populate the image dictionary in gtk mode, in addition to not writing the images to disk. Review URL: http://codereview.chromium.org/173525 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24541 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/gtk_theme_provider.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/browser/gtk/gtk_theme_provider.h') diff --git a/chrome/browser/gtk/gtk_theme_provider.h b/chrome/browser/gtk/gtk_theme_provider.h index dbffe57..be160e5 100644 --- a/chrome/browser/gtk/gtk_theme_provider.h +++ b/chrome/browser/gtk/gtk_theme_provider.h @@ -75,6 +75,10 @@ class GtkThemeProvider : public BrowserThemeProvider, // engines.) virtual SkBitmap* LoadThemeBitmap(int id); + // If use_gtk_ is true, completely ignores this call. Otherwise passes it to + // the superclass. + virtual void SaveThemeBitmap(const std::string resource_name, int id); + // Handles signal from GTK that our theme has been changed. static void OnStyleSet(GtkWidget* widget, GtkStyle* previous_style, -- cgit v1.1