diff options
author | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-20 19:01:55 +0000 |
---|---|---|
committer | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-20 19:01:55 +0000 |
commit | c3fd33c7c7d807d79914337e9beb805b1bd1f54c (patch) | |
tree | aa2eb235662b9159eb0e21ec1fe3006d0d30a5ec /webkit/port/plugins/chromium | |
parent | 6bfd15cabdcf379bd5e1e0dfb9b42fadef477400 (diff) | |
download | chromium_src-c3fd33c7c7d807d79914337e9beb805b1bd1f54c.zip chromium_src-c3fd33c7c7d807d79914337e9beb805b1bd1f54c.tar.gz chromium_src-c3fd33c7c7d807d79914337e9beb805b1bd1f54c.tar.bz2 |
Rollback 3612 abd 3613 to fix mac build. TBR.
Review URL: http://codereview.chromium.org/7674
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/port/plugins/chromium')
-rw-r--r-- | webkit/port/plugins/chromium/PluginDataChromium.cpp | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/webkit/port/plugins/chromium/PluginDataChromium.cpp b/webkit/port/plugins/chromium/PluginDataChromium.cpp index 7670e22..c289464 100644 --- a/webkit/port/plugins/chromium/PluginDataChromium.cpp +++ b/webkit/port/plugins/chromium/PluginDataChromium.cpp @@ -5,8 +5,6 @@ #include "config.h" #include "PluginData.h" -#include "PluginInfoStore.h" - #undef LOG #include "webkit/glue/glue_util.h" #include "webkit/glue/webkit_glue.h" @@ -22,9 +20,28 @@ void PluginData::initPlugins() return; refreshData = false; - PluginInfoStore c; for (size_t i = 0; i < plugins.size(); ++i) { - PluginInfo* info = c.createPluginInfoForPluginAtIndex(i); + const WebPluginInfo& sourceInfo = plugins[i]; + + PluginInfo* info = new PluginInfo; + info->name = webkit_glue::StdWStringToString(sourceInfo.name); + info->file = webkit_glue::StdWStringToString(sourceInfo.file); + info->desc = webkit_glue::StdWStringToString(sourceInfo.desc); + + for (size_t j = 0; j < sourceInfo.mime_types.size(); ++j) { + const WebPluginMimeType& mimeType = sourceInfo.mime_types[j]; + + MimeClassInfo* mime = new MimeClassInfo; + mime->type = webkit_glue::StdStringToString(mimeType.mime_type); + mime->desc = webkit_glue::StdWStringToString(mimeType.description); + + for (size_t k = 0; k < mimeType.file_extensions.size(); ++k) { + if (k > 0) + mime->suffixes += ","; + mime->suffixes += webkit_glue::StdStringToString(mimeType.file_extensions[k]); + } + info->mimes.append(mime); + } m_plugins.append(info); } } |