Index: chrome/browser/extensions/external_registry_extension_provider_win.cc |
diff --git a/chrome/browser/extensions/external_registry_extension_provider_win.cc b/chrome/browser/extensions/external_registry_extension_provider_win.cc |
index daf3d99cbcfefc484744cd0fa2dbbc059c5ef257..16b107ff9fdd3b040688442ac4eed3065f5dae12 100644 |
--- a/chrome/browser/extensions/external_registry_extension_provider_win.cc |
+++ b/chrome/browser/extensions/external_registry_extension_provider_win.cc |
@@ -58,7 +58,8 @@ void ExternalRegistryExtensionProvider::VisitRegisteredExtension( |
StringToLowerASCII(&id); |
scoped_ptr<Version> version; |
- version.reset(Version::GetVersionFromString(extension_version)); |
+ version.reset(Version::GetVersionFromString( |
+ WideToASCII(extension_version))); |
if (!version.get()) { |
LOG(ERROR) << "Invalid version value " << extension_version |
<< " for key " << key_path; |
@@ -103,8 +104,10 @@ bool ExternalRegistryExtensionProvider::GetExtensionDetails( |
if (!key.ReadValue(kRegistryExtensionVersion, &extension_version)) |
return false; |
- if (version) |
- version->reset(Version::GetVersionFromString(extension_version)); |
+ if (version) { |
+ version->reset(Version::GetVersionFromString( |
+ WideToASCII(extension_version))); |
+ } |
if (location) |
*location = Extension::EXTERNAL_REGISTRY; |