diff options
Diffstat (limited to 'chrome/browser/plugin_service.cc')
-rw-r--r-- | chrome/browser/plugin_service.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc index 5f66be9..ba5821e 100644 --- a/chrome/browser/plugin_service.cc +++ b/chrome/browser/plugin_service.cc @@ -42,10 +42,18 @@ static void NotifyPluginsOfActivation() { #endif // static +bool PluginService::enable_chrome_plugins_ = true; + +// static PluginService* PluginService::GetInstance() { return Singleton<PluginService>::get(); } +// static +void PluginService::EnableChromePlugins(bool enable) { + enable_chrome_plugins_ = enable; +} + PluginService::PluginService() : main_message_loop_(MessageLoop::current()), resource_dispatcher_host_(NULL), @@ -103,6 +111,9 @@ PluginService::~PluginService() { void PluginService::LoadChromePlugins( ResourceDispatcherHost* resource_dispatcher_host) { + if (!enable_chrome_plugins_) + return; + resource_dispatcher_host_ = resource_dispatcher_host; ChromePluginLib::LoadChromePlugins(GetCPBrowserFuncsForBrowser()); } |