diff options
-rw-r--r-- | webkit/plugins/npapi/plugin_group.cc | 1 | ||||
-rw-r--r-- | webkit/plugins/npapi/plugin_group_unittest.cc | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/webkit/plugins/npapi/plugin_group.cc b/webkit/plugins/npapi/plugin_group.cc index 22fd089..dd2bb1f 100644 --- a/webkit/plugins/npapi/plugin_group.cc +++ b/webkit/plugins/npapi/plugin_group.cc @@ -195,6 +195,7 @@ Version* PluginGroup::CreateVersionFromString(const string16& version_string) { // Replace any instances of 'r', ',' or '(' with a dot. std::wstring version = UTF16ToWide(version_string); RemoveChars(version, L") ", &version); + std::replace(version.begin(), version.end(), 'd', '.'); std::replace(version.begin(), version.end(), 'r', '.'); std::replace(version.begin(), version.end(), ',', '.'); std::replace(version.begin(), version.end(), '(', '.'); diff --git a/webkit/plugins/npapi/plugin_group_unittest.cc b/webkit/plugins/npapi/plugin_group_unittest.cc index 3d37786..9c2d137 100644 --- a/webkit/plugins/npapi/plugin_group_unittest.cc +++ b/webkit/plugins/npapi/plugin_group_unittest.cc @@ -193,8 +193,9 @@ TEST(PluginGroupTest, VersionExtraction) { { "3, 0, 0, 0", "3.0.0.0" }, // Picasa { "1, 0, 0, 1", "1.0.0.1" }, // Earth { "10,0,45,2", "10.0.45.2" }, // Flash - { "11.5.7r609", "11.5.7.609"}, // Shockwave { "10.1 r102", "10.1.102"}, // Flash + { "10.3 d180", "10.3.180" }, // Flash (Debug) + { "11.5.7r609", "11.5.7.609"}, // Shockwave { "1.6.0_22", "1.6.0.22"}, // Java }; |