summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webplugin_impl.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-08 19:46:18 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-08 19:46:18 +0000
commit610c089bd27051ca8d2b983e784b31c533cbfef8 (patch)
tree5405ca268d1302facfa03b84f75b1ca3240fdb52 /webkit/glue/webplugin_impl.cc
parentf0f9663246d5bd8a2d03721d7390bdb2db244e18 (diff)
downloadchromium_src-610c089bd27051ca8d2b983e784b31c533cbfef8.zip
chromium_src-610c089bd27051ca8d2b983e784b31c533cbfef8.tar.gz
chromium_src-610c089bd27051ca8d2b983e784b31c533cbfef8.tar.bz2
Take out the activex control.BUG=20259
Review URL: http://codereview.chromium.org/200031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25650 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webplugin_impl.cc')
-rw-r--r--webkit/glue/webplugin_impl.cc36
1 files changed, 2 insertions, 34 deletions
diff --git a/webkit/glue/webplugin_impl.cc b/webkit/glue/webplugin_impl.cc
index fec69bd..7168f2c 100644
--- a/webkit/glue/webplugin_impl.cc
+++ b/webkit/glue/webplugin_impl.cc
@@ -8,9 +8,6 @@
#include "base/string_util.h"
#include "net/base/escape.h"
#include "skia/ext/platform_canvas.h"
-#if defined(OS_WIN)
-#include "webkit/activex_shim/activex_shared.h"
-#endif
#include "webkit/api/public/WebConsoleMessage.h"
#include "webkit/api/public/WebCString.h"
#include "webkit/api/public/WebCursorInfo.h"
@@ -205,38 +202,9 @@ bool WebPluginImpl::initialize(WebPluginContainer* container) {
if (!page_delegate_)
return false;
- // Get the classid and version from attributes of the object.
- std::string combined_clsid;
-#if defined(OS_WIN)
- std::string clsid, version;
- if (activex_shim::IsMimeTypeActiveX(mime_type_)) {
- for (size_t i = 0; i < arg_names_.size(); i++) {
- const char* param_name = arg_names_[i].c_str();
- const char* param_value = arg_values_[i].c_str();
- if (base::strcasecmp(param_name, "classid") == 0) {
- activex_shim::GetClsidFromClassidAttribute(param_value, &clsid);
- } else if (base::strcasecmp(param_name, "codebase") == 0) {
- version = activex_shim::GetVersionFromCodebaseAttribute(param_value);
- }
- }
-
- // Attempt to map this clsid to a known NPAPI mime type if possible, failing
- // which we attempt to load the activex shim for the clsid.
- if (!activex_shim::GetMimeTypeForClsid(clsid, &mime_type_)) {
- // We need to pass the combined clsid + version to PluginsList, so that it
- // would detect if the requested version is installed. If not, it needs
- // to use the default plugin to update the control.
- if (!version.empty())
- combined_clsid = clsid + "#" + version;
- else
- combined_clsid = clsid;
- }
- }
-#endif
-
std::string actual_mime_type;
WebPluginDelegate* plugin_delegate = page_delegate_->CreatePluginDelegate(
- plugin_url_, mime_type_, combined_clsid, &actual_mime_type);
+ plugin_url_, mime_type_, &actual_mime_type);
if (!plugin_delegate)
return NULL;
@@ -1024,7 +992,7 @@ bool WebPluginImpl::ReinitializePluginForResponse(
std::string actual_mime_type;
WebPluginDelegate* plugin_delegate = page_delegate_->CreatePluginDelegate(
- plugin_url_, mime_type_, std::string(), &actual_mime_type);
+ plugin_url_, mime_type_, &actual_mime_type);
bool ok = plugin_delegate->Initialize(
plugin_url_, arg_names_, arg_values_, this, load_manually_);