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

Unified Diff: content/browser/plugin_service_impl.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: content/browser/plugin_service_impl.cc
===================================================================
--- content/browser/plugin_service_impl.cc (revision 204507)
+++ content/browser/plugin_service_impl.cc (working copy)
@@ -196,6 +196,9 @@
path = command_line->GetSwitchValuePath(switches::kExtraPluginDir);
if (!path.empty())
plugin_list_->AddExtraPluginDir(path);
+
+ if (command_line->HasSwitch(switches::kDisablePluginsDiscovery))
+ plugin_list_->DisablePluginsDiscovery();
}
void PluginServiceImpl::StartWatchingPlugins() {

Powered by Google App Engine
This is Rietveld 408576698