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

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

Issue 5848005: base/version: remove wstring version (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: retry 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
« no previous file with comments | « 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/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) {
« no previous file with comments | « chrome_frame/dll_redirector.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698