Index: webkit/glue/plugins/plugin_group.cc |
diff --git a/webkit/glue/plugins/plugin_group.cc b/webkit/glue/plugins/plugin_group.cc |
index 548e624a81fd239a9406a24dd134e5cf0503f374..af3ff27b79541a64f2b0aaef6da9f74adbc11014 100644 |
--- a/webkit/glue/plugins/plugin_group.cc |
+++ b/webkit/glue/plugins/plugin_group.cc |
@@ -183,7 +183,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; |
@@ -209,7 +209,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) { |