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

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

Issue 284103002: Replace "external_install" boolean parameter with explicit enumeration in ExtensionUninstall method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address issue exposed by failing unit test. Created 6 years, 5 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
Index: chrome/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index c7650acc314ee96a47ecfa9ddf7f18861f677190..bbe2b969d8f83af6c09b8578937d8be2aa5ff3ad 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -366,8 +366,12 @@ void ThemeService::RemoveUnusedThemes(bool ignore_infobars) {
// are installed but not loaded because they are blacklisted by a management
// policy provider.
- for (size_t i = 0; i < remove_list.size(); ++i)
- service->UninstallExtension(remove_list[i], false, NULL);
+ for (size_t i = 0; i < remove_list.size(); ++i) {
+ service->UninstallExtension(
+ remove_list[i],
+ ExtensionService::UNINSTALL_REASON_ORPHANED_THEME,
+ NULL);
+ }
}
void ThemeService::UseDefaultTheme() {
« no previous file with comments | « chrome/browser/sync/test/integration/sync_extension_helper.cc ('k') | chrome/browser/themes/theme_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698