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

Unified Diff: content/browser/plugin_service.cc

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: windows fixes Created 9 years, 9 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 | « content/browser/plugin_service.h ('k') | content/browser/plugin_service_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_service.cc
diff --git a/content/browser/plugin_service.cc b/content/browser/plugin_service.cc
index 95249f74dc16e205a31ee6a2cfab221662a205e1..bc6c026147cad6822f3eec70abb15de860e538b5 100644
--- a/content/browser/plugin_service.cc
+++ b/content/browser/plugin_service.cc
@@ -14,12 +14,10 @@
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
-#include "chrome/browser/chrome_plugin_host.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/plugin_updater.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_paths.h"
-#include "chrome/common/chrome_plugin_lib.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/default_plugin.h"
#include "chrome/common/extensions/extension.h"
@@ -77,18 +75,12 @@ 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
// enable or disable.
PluginUpdater::GetInstance()->UpdatePluginGroupsStateFromPrefs(profile);
-
- // Have Chrome plugins write their data to the profile directory.
- GetInstance()->SetChromePluginDataDir(profile->GetPath());
}
// static
@@ -96,20 +88,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);
@@ -218,23 +202,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_;
}
« no previous file with comments | « content/browser/plugin_service.h ('k') | content/browser/plugin_service_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698