Index: chrome/browser/plugin_service.cc |
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc |
index 6d2a703e5483d7ca6114a2a3c45d967163032891..e8b4df80660bbaf0652e4ef94a33201d3b8dabe3 100644 |
--- a/chrome/browser/plugin_service.cc |
+++ b/chrome/browser/plugin_service.cc |
@@ -249,7 +249,7 @@ void PluginService::GetAllowedPluginForOpenChannelToPlugin( |
webkit::npapi::WebPluginInfo info; |
bool found = GetFirstAllowedPluginInfo(url, mime_type, &info, NULL); |
FilePath plugin_path; |
- if (found && info.enabled) |
+ if (found && webkit::npapi::IsPluginEnabled(info)) |
plugin_path = FilePath(info.path); |
// Now we jump back to the IO thread to finish opening the channel. |
@@ -381,6 +381,7 @@ void PluginService::Observe(NotificationType type, |
#endif |
case NotificationType::PLUGIN_ENABLE_STATUS_CHANGED: { |
+ webkit::npapi::PluginList::Singleton()->RefreshPlugins(); |
PurgePluginListCache(false); |
break; |
} |