diff options
author | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 20:56:18 +0000 |
---|---|---|
committer | sgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-11 20:56:18 +0000 |
commit | ba0ad5cfc951e80eea8b6a8c3ac2ddd02762b8df (patch) | |
tree | 6999d1fae5a73937e489c0819a528eb538a8558d /chrome/browser/plugin_service.cc | |
parent | d750e4d1052bd33755326f122bb2ab73df9e0079 (diff) | |
download | chromium_src-ba0ad5cfc951e80eea8b6a8c3ac2ddd02762b8df.zip chromium_src-ba0ad5cfc951e80eea8b6a8c3ac2ddd02762b8df.tar.gz chromium_src-ba0ad5cfc951e80eea8b6a8c3ac2ddd02762b8df.tar.bz2 |
Revert 23064 - Ensure we don't load plugins on the IO thread
BUG=17938
TEST=added asserts which crash if plugins loaded on IO thread, current UI tests exercise them
Review URL: http://codereview.chromium.org/164305
TBR=jam@chromium.org
Review URL: http://codereview.chromium.org/165321
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23073 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/plugin_service.cc')
-rw-r--r-- | chrome/browser/plugin_service.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/chrome/browser/plugin_service.cc b/chrome/browser/plugin_service.cc index 1360e6f..d9d3e65 100644 --- a/chrome/browser/plugin_service.cc +++ b/chrome/browser/plugin_service.cc @@ -75,14 +75,8 @@ PluginService::~PluginService() { #endif } -bool PluginService::PluginsLoaded() { - AutoLock lock(lock_); - return NPAPI::PluginList::PluginsLoaded(); -} - void PluginService::GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) { - DCHECK(ChromeThread::CurrentlyOn(ChromeThread::FILE)); AutoLock lock(lock_); NPAPI::PluginList::Singleton()->GetPlugins(refresh, plugins); } @@ -186,8 +180,6 @@ FilePath PluginService::GetPluginPath(const GURL& url, const std::string& clsid, std::string* actual_mime_type) { AutoLock lock(lock_); - DCHECK(NPAPI::PluginList::PluginsLoaded() || - ChromeThread::CurrentlyOn(ChromeThread::FILE)); bool allow_wildcard = true; WebPluginInfo info; if (NPAPI::PluginList::Singleton()->GetPluginInfo(url, mime_type, clsid, @@ -203,16 +195,12 @@ FilePath PluginService::GetPluginPath(const GURL& url, bool PluginService::GetPluginInfoByPath(const FilePath& plugin_path, WebPluginInfo* info) { AutoLock lock(lock_); - DCHECK(NPAPI::PluginList::PluginsLoaded() || - ChromeThread::CurrentlyOn(ChromeThread::FILE)); return NPAPI::PluginList::Singleton()->GetPluginInfoByPath(plugin_path, info); } bool PluginService::HavePluginFor(const std::string& mime_type, bool allow_wildcard) { AutoLock lock(lock_); - DCHECK(NPAPI::PluginList::PluginsLoaded() || - ChromeThread::CurrentlyOn(ChromeThread::FILE)); GURL url; WebPluginInfo info; |