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

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
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_service_impl.cc
===================================================================
--- content/browser/plugin_service_impl.cc (revision 205261)
+++ 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() {
« no previous file with comments | « chrome/browser/browser_process_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698