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

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: Whitespace fixes only. Trybot happiness still applies. 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
« no previous file with comments | « chrome/browser/plugin_exceptions_table_model_unittest.cc ('k') | chrome/browser/plugin_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_service.cc
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc
index 82fa237cd3e8806b843e1a4a72a4a4c8439a8ecc..534773a27f77102d89dbde7eca4b49a3477d98a3 100644
--- a/chrome/browser/plugin_service.cc
+++ b/chrome/browser/plugin_service.cc
@@ -314,7 +314,7 @@ void PluginService::GetAllowedPluginForOpenChannelToPlugin(
bool found = GetFirstAllowedPluginInfo(
render_process_id, render_view_id, 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.
@@ -456,6 +456,7 @@ void PluginService::Observe(NotificationType type,
#endif
case NotificationType::PLUGIN_ENABLE_STATUS_CHANGED: {
+ webkit::npapi::PluginList::Singleton()->RefreshPlugins();
PurgePluginListCache(false);
break;
}
@@ -507,7 +508,7 @@ void PluginService::RegisterPepperPlugins() {
WideToUTF16(plugins[i].path.BaseName().ToWStringHack()) :
ASCIIToUTF16(plugins[i].name);
info.desc = ASCIIToUTF16(plugins[i].description);
- info.enabled = true;
+ info.enabled = webkit::npapi::WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED;
// TODO(evan): Pepper shouldn't require us to parse strings to get
// the list of mime types out.
« no previous file with comments | « chrome/browser/plugin_exceptions_table_model_unittest.cc ('k') | chrome/browser/plugin_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698