| Index: chrome/installer/setup/setup_util.cc
|
| diff --git a/chrome/installer/setup/setup_util.cc b/chrome/installer/setup/setup_util.cc
|
| index 572c54a3c73e0abeadfe316c903ceacaa248a311..8001ec8e4d36080cf912dc9b12e7c855fa2e13d2 100644
|
| --- a/chrome/installer/setup/setup_util.cc
|
| +++ b/chrome/installer/setup/setup_util.cc
|
| @@ -160,22 +160,22 @@ int BsdiffPatchFiles(const base::FilePath& src,
|
| return exit_code;
|
| }
|
|
|
| -Version* GetMaxVersionFromArchiveDir(const base::FilePath& chrome_path) {
|
| +base::Version* GetMaxVersionFromArchiveDir(const base::FilePath& chrome_path) {
|
| VLOG(1) << "Looking for Chrome version folder under " << chrome_path.value();
|
| base::FileEnumerator version_enum(chrome_path, false,
|
| base::FileEnumerator::DIRECTORIES);
|
| // TODO(tommi): The version directory really should match the version of
|
| // setup.exe. To begin with, we should at least DCHECK that that's true.
|
|
|
| - std::unique_ptr<Version> max_version(new Version("0.0.0.0"));
|
| + std::unique_ptr<base::Version> max_version(new base::Version("0.0.0.0"));
|
| bool version_found = false;
|
|
|
| while (!version_enum.Next().empty()) {
|
| base::FileEnumerator::FileInfo find_data = version_enum.GetInfo();
|
| VLOG(1) << "directory found: " << find_data.GetName().value();
|
|
|
| - std::unique_ptr<Version> found_version(
|
| - new Version(base::UTF16ToASCII(find_data.GetName().value())));
|
| + std::unique_ptr<base::Version> found_version(
|
| + new base::Version(base::UTF16ToASCII(find_data.GetName().value())));
|
| if (found_version->IsValid() &&
|
| found_version->CompareTo(*max_version.get()) > 0) {
|
| max_version.reset(found_version.release());
|
| @@ -208,7 +208,7 @@ base::FilePath FindArchiveToPatch(const InstallationState& original_state,
|
| if (base::PathExists(patch_source))
|
| return patch_source;
|
| }
|
| - std::unique_ptr<Version> version(
|
| + std::unique_ptr<base::Version> version(
|
| installer::GetMaxVersionFromArchiveDir(installer_state.target_path()));
|
| if (version) {
|
| patch_source = installer_state.GetInstallerDirectory(*version)
|
|
|