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

Unified Diff: content/common/pepper_plugin_registry.cc

Issue 7901015: Revert 101269 - Store plug-in enabled/disabled state in PluginPrefs instead of WebPluginInfo, to ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 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 | « content/common/pepper_plugin_registry.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/pepper_plugin_registry.cc
===================================================================
--- content/common/pepper_plugin_registry.cc (revision 101271)
+++ content/common/pepper_plugin_registry.cc (working copy)
@@ -89,12 +89,22 @@
info.desc = ASCIIToUTF16(description);
info.mime_types = mime_types;
+ webkit::WebPluginInfo::EnabledStates enabled_state =
+ webkit::WebPluginInfo::USER_ENABLED_POLICY_UNMANAGED;
+
+ if (!enabled) {
+ enabled_state =
+ webkit::WebPluginInfo::USER_DISABLED_POLICY_UNMANAGED;
+ }
+
+ info.enabled = enabled_state;
return info;
}
PepperPluginInfo::PepperPluginInfo()
: is_internal(false),
- is_out_of_process(false) {
+ is_out_of_process(false),
+ enabled(true) {
}
PepperPluginInfo::~PepperPluginInfo() {
@@ -109,6 +119,7 @@
webplugin_info.type ==
webkit::WebPluginInfo::PLUGIN_TYPE_PEPPER_OUT_OF_PROCESS;
+ pepper_info->enabled = webkit::IsPluginEnabled(webplugin_info);
pepper_info->path = FilePath(webplugin_info.path);
pepper_info->name = UTF16ToASCII(webplugin_info.name);
pepper_info->description = UTF16ToASCII(webplugin_info.desc);
Property changes on: content/common/pepper_plugin_registry.cc
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « content/common/pepper_plugin_registry.h ('k') | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698