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

Unified Diff: webkit/plugins/npapi/plugin_list_win.cc

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_win.cc
===================================================================
--- webkit/plugins/npapi/plugin_list_win.cc (revision 204062)
+++ webkit/plugins/npapi/plugin_list_win.cc (working copy)
@@ -306,6 +306,10 @@
}
void PluginList::GetPluginDirectories(std::vector<base::FilePath>* plugin_dirs) {
+ if (PluginList::plugins_discovery_disabled_) {
Bernhard Bauer 2013/06/06 08:28:50 Remove braces please, make the previous line fit i
seva 2013/06/06 22:11:25 Done.
+ return;
+ }
+
// We use a set for uniqueness, which we require, over order, which we do not.
std::set<base::FilePath> dirs;
@@ -357,6 +361,10 @@
}
void PluginList::GetPluginPathsFromRegistry(std::vector<base::FilePath>* plugins) {
+ if (PluginList::plugins_discovery_disabled_) {
Bernhard Bauer 2013/06/06 08:28:50 Same here.
seva 2013/06/06 22:11:25 Done.
+ return;
+ }
+
std::set<base::FilePath> plugin_dirs;
GetPluginsInRegistryDirectory(
« webkit/plugins/npapi/plugin_list_posix.cc ('K') | « webkit/plugins/npapi/plugin_list_posix.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698