Index: chrome/test/mini_installer_test/installer_test_util.cc |
diff --git a/chrome/test/mini_installer_test/installer_test_util.cc b/chrome/test/mini_installer_test/installer_test_util.cc |
index ad93c549caa563f63529a35d0069f71cf20294c4..8565dfd3b35f99ec9459b7dfbf44c882c964f5f0 100644 |
--- a/chrome/test/mini_installer_test/installer_test_util.cc |
+++ b/chrome/test/mini_installer_test/installer_test_util.cc |
@@ -112,11 +112,11 @@ bool GetInstalledProducts( |
if (type != InstallationValidator::NO_PRODUCTS) { |
current_dist = BrowserDistribution::GetSpecificDistribution( |
ToBrowserDistributionType(type)); |
- scoped_ptr<Version> version( |
- InstallUtil::GetChromeVersion(current_dist, system_level)); |
- if (version.get()) { |
+ Version version; |
+ InstallUtil::GetChromeVersion(current_dist, system_level, &version); |
+ if (version.IsValid()) { |
current_prod.type = type; |
- current_prod.version = version->GetString(); |
+ current_prod.version = version.GetString(); |
current_prod.system = system_level; |
products->push_back(current_prod); |
} |