Index: content/browser/plugin_service.cc |
diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc |
index 756dbaca9da454e9516ac7b9b4802d0eb97418c1..2cc6de9edce3da4f98c4647ef94fc5df8d151d26 100644 |
--- a/content/browser/plugin_service.cc |
+++ b/content/browser/plugin_service.cc |
@@ -14,12 +14,13 @@ |
#include "base/values.h" |
#include "base/synchronization/waitable_event.h" |
#include "chrome/browser/browser_process.h" |
-#include "chrome/browser/chrome_plugin_host.h" |
+#include "chrome/browser/browser_thread.h" |
#include "chrome/browser/extensions/extension_service.h" |
#include "chrome/browser/plugin_updater.h" |
#include "chrome/browser/ppapi_plugin_process_host.h" |
#include "chrome/browser/profiles/profile.h" |
-#include "chrome/common/chrome_plugin_lib.h" |
+#include "chrome/browser/renderer_host/render_process_host.h" |
+#include "chrome/browser/renderer_host/render_view_host.h" |
#include "chrome/common/chrome_paths.h" |
#include "chrome/common/chrome_switches.h" |
#include "chrome/common/default_plugin.h" |
@@ -78,17 +79,11 @@ class PluginDirWatcherDelegate : public FilePathWatcher::Delegate { |
#endif |
// static |
-bool PluginService::enable_chrome_plugins_ = true; |
- |
-// static |
void PluginService::InitGlobalInstance(Profile* profile) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
// We first group the plugins and then figure out which groups to disable. |
PluginUpdater::GetInstance()->DisablePluginGroupsFromPrefs(profile); |
- |
- // Have Chrome plugins write their data to the profile directory. |
- GetInstance()->SetChromePluginDataDir(profile->GetPath()); |
} |
// static |
@@ -96,20 +91,12 @@ 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), |
ui_locale_(g_browser_process->GetApplicationLocale()) { |
RegisterPepperPlugins(); |
- // Have the NPAPI plugin list search for Chrome plugins as well. |
- ChromePluginLib::RegisterPluginsWithNPAPI(); |
- |
// Load any specified on the command line as well. |
const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
FilePath path = command_line->GetSwitchValuePath(switches::kLoadPlugin); |
@@ -220,23 +207,6 @@ PluginService::~PluginService() { |
#endif |
} |
-void PluginService::LoadChromePlugins( |
- ResourceDispatcherHost* resource_dispatcher_host) { |
- if (!enable_chrome_plugins_) |
- return; |
- |
- resource_dispatcher_host_ = resource_dispatcher_host; |
- ChromePluginLib::LoadChromePlugins(GetCPBrowserFuncsForBrowser()); |
-} |
- |
-void PluginService::SetChromePluginDataDir(const FilePath& data_dir) { |
- chrome_plugin_data_dir_ = data_dir; |
-} |
- |
-const FilePath& PluginService::GetChromePluginDataDir() { |
- return chrome_plugin_data_dir_; |
-} |
- |
const std::string& PluginService::GetUILocale() { |
return ui_locale_; |
} |