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

Unified Diff: webkit/plugins/npapi/plugin_list.h

Issue 16369004: Adding --disable-plugins-discovery command line switch to not load third-party plugins from common … (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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: webkit/plugins/npapi/plugin_list.h
===================================================================
--- webkit/plugins/npapi/plugin_list.h (revision 204062)
+++ webkit/plugins/npapi/plugin_list.h (working copy)
@@ -65,6 +65,10 @@
const std::string& mime_type,
bool allow_wildcard);
+ // Disables discovery of third_party plugins in common places next time
Bernhard Bauer 2013/06/06 08:28:50 s/common/well-known/?
seva 2013/06/06 22:11:25 I don't know how well known these are :) everythin
Bernhard Bauer 2013/06/07 10:33:43 Standard is relative as well, I guess ;-) But "st
+ // plugins are loaded.
+ void DisablePluginsDiscovery();
+
// Cause the plugin list to refresh next time they are accessed, regardless
// of whether they are already loaded.
void RefreshPlugins();
@@ -189,6 +193,10 @@
#endif
protected:
+ // Flag indicating whether third_party plugins will be searched for
+ // in common places.
+ bool plugins_discovery_disabled_;
Bernhard Bauer 2013/06/06 08:28:50 I don't think this needs to be protected.
seva 2013/06/06 22:11:25 Indeed; moved down to private: section. Thanks.
+
// Constructors are private for singletons but we expose this one
// for subclasses for test purposes.
PluginList();

Powered by Google App Engine
This is Rietveld 408576698