Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index fac49f28d5d64d1bae52185f2c766a52f764ca9a..c34ff6d884b116c26ce404b198f0b2107a352820 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -1168,6 +1168,14 @@ void ExtensionService::NotifyExtensionUnloaded( |
content::Source<Profile>(profile_), |
content::Details<UnloadedExtensionInfo>(&details)); |
+#if defined(ENABLE_THEMES) |
+ // Let the ThemeService know that the theme has been unloaded. |
+ if (reason != extension_misc::UNLOAD_REASON_UPDATE && |
+ extension->id() == ThemeService::GetThemeIDForProfile(profile_)) { |
+ ThemeServiceFactory::GetForProfile(profile_)->UseDefaultTheme(); |
+ } |
+#endif |
+ |
for (content::RenderProcessHost::iterator i( |
content::RenderProcessHost::AllHostsIterator()); |
!i.IsAtEnd(); i.Advance()) { |