Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(639)

Unified Diff: webkit/glue/plugins/plugin_group.cc

Issue 5848005: base/version: remove wstring version (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« chrome/app/client_util.cc ('K') | « chrome_frame/dll_redirector.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« chrome/app/client_util.cc ('K') | « chrome_frame/dll_redirector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698