diff options
author | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-20 21:58:28 +0000 |
---|---|---|
committer | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-20 21:58:28 +0000 |
commit | b38b3a0232a7f35cb89730ff08650adb3b12f430 (patch) | |
tree | 29586e879cc51b157a797b0af5527ff1d1eda4b3 /webkit/port/plugins/chromium | |
parent | 8b29bcad34e03a319993dc38fc50a33d10a7da9d (diff) | |
download | chromium_src-b38b3a0232a7f35cb89730ff08650adb3b12f430.zip chromium_src-b38b3a0232a7f35cb89730ff08650adb3b12f430.tar.gz chromium_src-b38b3a0232a7f35cb89730ff08650adb3b12f430.tar.bz2 |
Resubmit r3612 and r3613 this time with mac fixes (thanks mark!).
Review URL: http://codereview.chromium.org/7675
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3633 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, 4 insertions, 21 deletions
diff --git a/webkit/port/plugins/chromium/PluginDataChromium.cpp b/webkit/port/plugins/chromium/PluginDataChromium.cpp index c289464..7670e22 100644 --- a/webkit/port/plugins/chromium/PluginDataChromium.cpp +++ b/webkit/port/plugins/chromium/PluginDataChromium.cpp @@ -5,6 +5,8 @@ #include "config.h" #include "PluginData.h" +#include "PluginInfoStore.h" + #undef LOG #include "webkit/glue/glue_util.h" #include "webkit/glue/webkit_glue.h" @@ -20,28 +22,9 @@ void PluginData::initPlugins() return; refreshData = false; + PluginInfoStore c; for (size_t i = 0; i < plugins.size(); ++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); - } + PluginInfo* info = c.createPluginInfoForPluginAtIndex(i); m_plugins.append(info); } } |