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

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: 3 Created 7 years, 8 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/extensions/extension_install_ui_browsertest.cc ('k') | 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 d540b602e28957c9502a7d4948f9f34e8bb70827..24674e4cbf37c5bed070bc6a7ddb8f8f21de61f3 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -305,6 +305,8 @@ void ThemeService::ClearAllThemeData() {
profile_->GetPrefs()->ClearPref(prefs::kCurrentThemePackFilename);
SaveThemeID(kDefaultThemeID);
+
+ RemoveUnusedThemes();
}
void ThemeService::LoadThemePrefs() {
« no previous file with comments | « chrome/browser/extensions/extension_install_ui_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698