summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_theme_provider.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 22:27:00 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-19 22:27:00 +0000
commit66da08b94cbf0d93fbaff2233d8c358d61f6c088 (patch)
tree0d75faf3ff49e79df085dbc2609551f2099d1519 /chrome/browser/browser_theme_provider.h
parentd1cd82b9cc7b41756f917e5aa983566136df9174 (diff)
downloadchromium_src-66da08b94cbf0d93fbaff2233d8c358d61f6c088.zip
chromium_src-66da08b94cbf0d93fbaff2233d8c358d61f6c088.tar.gz
chromium_src-66da08b94cbf0d93fbaff2233d8c358d61f6c088.tar.bz2
Delete unused themes from disk on shutdown.
This reduces the size of the Preferences file and frees up some disk space. The smaller Preferences file should help improve startup time for users who have installed lots of themes. BUG=24377 Review URL: http://codereview.chromium.org/303006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29468 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_theme_provider.h')
-rw-r--r--chrome/browser/browser_theme_provider.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_theme_provider.h b/chrome/browser/browser_theme_provider.h
index f54c3ca..af11285 100644
--- a/chrome/browser/browser_theme_provider.h
+++ b/chrome/browser/browser_theme_provider.h
@@ -336,6 +336,9 @@ class BrowserThemeProvider : public NonThreadSafe,
// Frees generated images and clears the image cache.
void ClearCaches();
+ // Remove preference values for themes that are no longer in use.
+ void RemoveUnusedThemes();
+
// Encode image at image_cache_[id] as PNG and write to disk.
void WriteImagesToDisk() const;