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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 13584007: Remove unused themes on clicking the reset theme button (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index fe2c2f696b20fa663b99407764145399ad084699..26013999710f9490f72b3848b6caa389bd7e2799 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -240,6 +240,7 @@ void ThemeService::RemoveUnusedThemes() {
void ThemeService::UseDefaultTheme() {
ClearAllThemeData();
NotifyThemeChanged();
+ RemoveUnusedThemes();
pkotwicz 2013/04/04 17:03:53 You should call RemoveUnusedThemes() at the end of
ckocagil 2013/04/05 18:12:03 Done.
content::RecordAction(UserMetricsAction("Themes_Reset"));
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698