Index: chrome/browser/extensions/extension_service.cc |
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc |
index 04da86bc33a1b5283030d223ec54bb91fdfa9268..7305770489ea610fe01c280b8281d3ff380ce0b1 100644 |
--- a/chrome/browser/extensions/extension_service.cc |
+++ b/chrome/browser/extensions/extension_service.cc |
@@ -1169,6 +1169,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_)) { |
akalin
2012/12/04 08:03:50
i actually had to revert my patch that changed thi
|
+ ThemeServiceFactory::GetForProfile(profile_)->UseDefaultTheme(); |
+ } |
+#endif |
+ |
for (content::RenderProcessHost::iterator i( |
content::RenderProcessHost::AllHostsIterator()); |
!i.IsAtEnd(); i.Advance()) { |