Index: chrome/browser/plugin_service.cc |
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc |
index e136f97c9e353d5a42c196914dd7392702e90ccf..ad6f8a19f2e975e2c6a6ff2778bac8e91cfd1f7d 100644 |
--- a/chrome/browser/plugin_service.cc |
+++ b/chrome/browser/plugin_service.cc |
@@ -303,7 +303,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. |
@@ -431,6 +431,7 @@ void PluginService::Observe(NotificationType type, |
#endif |
case NotificationType::PLUGIN_ENABLE_STATUS_CHANGED: { |
+ webkit::npapi::PluginList::Singleton()->RefreshPlugins(); |
jam
2011/01/19 20:22:09
I think we want to avoid reloading the plugins fro
pastarmovj
2011/01/19 23:39:17
If we don't do that here policy changes during the
jam
2011/01/20 00:24:25
I see, I didn't know that the UI always marks it f
|
PurgePluginListCache(false); |
break; |
} |