| Index: chrome/browser/extensions/extension_service.cc
|
| diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
|
| index 77c7f6da3250738dc42aa66aec86bed7f5702a6d..f5fe841d67111af83bcf21aa9adddd935ab257d2 100644
|
| --- a/chrome/browser/extensions/extension_service.cc
|
| +++ b/chrome/browser/extensions/extension_service.cc
|
| @@ -1111,6 +1111,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
|
| AddDataSource(thumbnail_source);
|
| }
|
|
|
| +#if defined(ENABLE_PLUGINS)
|
| // TODO(mpcomplete): This ends up affecting all profiles. See crbug.com/80757.
|
| bool plugins_changed = false;
|
| for (size_t i = 0; i < extension->plugins().size(); ++i) {
|
| @@ -1141,6 +1142,7 @@ void ExtensionService::NotifyExtensionLoaded(const Extension* extension) {
|
|
|
| if (plugins_changed || nacl_modules_changed)
|
| PluginService::GetInstance()->PurgePluginListCache(profile_, false);
|
| +#endif // defined(ENABLE_PLUGINS)
|
|
|
| #if defined(OS_CHROMEOS)
|
| for (std::vector<Extension::InputComponentInfo>::const_iterator component =
|
| @@ -1209,6 +1211,7 @@ void ExtensionService::NotifyExtensionUnloaded(
|
|
|
| UpdateActiveExtensionsInCrashReporter();
|
|
|
| +#if defined(ENABLE_PLUGINS)
|
| bool plugins_changed = false;
|
| for (size_t i = 0; i < extension->plugins().size(); ++i) {
|
| const Extension::PluginInfo& plugin = extension->plugins()[i];
|
| @@ -1231,6 +1234,7 @@ void ExtensionService::NotifyExtensionUnloaded(
|
|
|
| if (plugins_changed || nacl_modules_changed)
|
| PluginService::GetInstance()->PurgePluginListCache(profile_, false);
|
| +#endif // defined(ENABLE_PLUGINS)
|
| }
|
|
|
| Profile* ExtensionService::profile() {
|
|
|