diff options
Diffstat (limited to 'chrome/installer/util/install_util.cc')
-rw-r--r-- | chrome/installer/util/install_util.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/installer/util/install_util.cc b/chrome/installer/util/install_util.cc index d1110de..999d84a 100644 --- a/chrome/installer/util/install_util.cc +++ b/chrome/installer/util/install_util.cc @@ -19,7 +19,6 @@ #include "base/memory/scoped_ptr.h" #include "base/path_service.h" #include "base/string_util.h" -#include "base/sys_info.h" #include "base/values.h" #include "base/version.h" #include "base/win/registry.h" @@ -137,13 +136,15 @@ Version* InstallUtil::GetChromeVersion(BrowserDistribution* dist, } bool InstallUtil::IsOSSupported() { - // We do not support Win2K or older, or XP without service pack 2. - VLOG(1) << base::SysInfo::OperatingSystemName() << ' ' - << base::SysInfo::OperatingSystemVersion(); + int major, minor; base::win::Version version = base::win::GetVersion(); + base::win::GetServicePackLevel(&major, &minor); + + // We do not support Win2K or older, or XP without service pack 2. + VLOG(1) << "Windows Version: " << version + << ", Service Pack: " << major << "." << minor; return (version > base::win::VERSION_XP) || - ((version == base::win::VERSION_XP) && - (base::win::OSInfo::GetInstance()->service_pack().major >= 2)); + (version == base::win::VERSION_XP && major >= 2); } void InstallUtil::WriteInstallerResult(bool system_install, |