| Index: base/win/windows_version.cc
|
| diff --git a/base/win/windows_version.cc b/base/win/windows_version.cc
|
| index a99cd1840acb91ddc072a27e46f04c8eafc553a3..fc2def39194e3b7d31e9e3f8a9a55f2136685715 100644
|
| --- a/base/win/windows_version.cc
|
| +++ b/base/win/windows_version.cc
|
| @@ -64,6 +64,8 @@ OSInfo::OSInfo()
|
| version_ = VERSION_WIN8_1;
|
| break;
|
| }
|
| + } else if (version_number_.major == 10) {
|
| + version_ = VERSION_WIN10;
|
| } else if (version_number_.major > 6) {
|
| NOTREACHED();
|
| version_ = VERSION_WIN_LAST;
|
| @@ -84,7 +86,7 @@ OSInfo::OSInfo()
|
| GetProductInfoPtr get_product_info;
|
| DWORD os_type;
|
|
|
| - if (version_info.dwMajorVersion == 6) {
|
| + if (version_info.dwMajorVersion == 6 || version_info.dwMajorVersion == 10) {
|
| // Only present on Vista+.
|
| get_product_info = reinterpret_cast<GetProductInfoPtr>(
|
| ::GetProcAddress(::GetModuleHandle(L"kernel32.dll"), "GetProductInfo"));
|
|
|