Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1856)

Unified Diff: chrome/browser/plugin_service.cc

Issue 5699005: Policy: Re-enabled plugin still disabled (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added empty group prunning. Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698