Index: webkit/plugins/npapi/plugin_group.cc |
diff --git a/webkit/plugins/npapi/plugin_group.cc b/webkit/plugins/npapi/plugin_group.cc |
index ec1b537b2975ea02ee87747be671d29eb0a26347..77c27aa5e39a11a0c84fd1d2885a8fe3e822369f 100644 |
--- a/webkit/plugins/npapi/plugin_group.cc |
+++ b/webkit/plugins/npapi/plugin_group.cc |
@@ -186,7 +186,7 @@ bool PluginGroup::Match(const WebPluginInfo& plugin) const { |
// There's at least one version range, the plugin's version must be in it. |
scoped_ptr<Version> plugin_version( |
- Version::GetVersionFromString(UTF16ToWide(plugin.version))); |
+ Version::GetVersionFromString(UTF16ToASCII(plugin.version))); |
if (plugin_version.get() == NULL) { |
// No version could be extracted, assume we don't match the range. |
return false; |
@@ -212,7 +212,7 @@ Version* PluginGroup::CreateVersionFromString(const string16& version_string) { |
std::replace(version.begin(), version.end(), ',', '.'); |
std::replace(version.begin(), version.end(), '(', '.'); |
- return Version::GetVersionFromString(version); |
+ return Version::GetVersionFromString(WideToASCII(version)); |
} |
void PluginGroup::UpdateActivePlugin(const WebPluginInfo& plugin) { |