Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: base/win/windows_version.cc

Issue 2781833003: Only use overlays on windows 10 anniversary update and later. (Closed)
Patch Set: rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/win/windows_version.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/win/windows_version.h" 5 #include "base/win/windows_version.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 case 2: 43 case 2:
44 // Treat Windows Server 2012 the same as Windows 8. 44 // Treat Windows Server 2012 the same as Windows 8.
45 return VERSION_WIN8; 45 return VERSION_WIN8;
46 default: 46 default:
47 DCHECK_EQ(minor, 3); 47 DCHECK_EQ(minor, 3);
48 return VERSION_WIN8_1; 48 return VERSION_WIN8_1;
49 } 49 }
50 } else if (major == 10) { 50 } else if (major == 10) {
51 if (build < 10586) { 51 if (build < 10586) {
52 return VERSION_WIN10; 52 return VERSION_WIN10;
53 } else if (build < 14393) {
54 return VERSION_WIN10_TH2;
53 } else { 55 } else {
54 return VERSION_WIN10_TH2; 56 return VERSION_WIN10_R1;
55 } 57 }
56 } else if (major > 6) { 58 } else if (major > 6) {
57 NOTREACHED(); 59 NOTREACHED();
58 return VERSION_WIN_LAST; 60 return VERSION_WIN_LAST;
59 } 61 }
60 62
61 return VERSION_PRE_XP; 63 return VERSION_PRE_XP;
62 } 64 }
63 65
64 // Retrieve a version from kernel32. This is useful because when running in 66 // Retrieve a version from kernel32. This is useful because when running in
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 return WOW64_UNKNOWN; 246 return WOW64_UNKNOWN;
245 return is_wow64 ? WOW64_ENABLED : WOW64_DISABLED; 247 return is_wow64 ? WOW64_ENABLED : WOW64_DISABLED;
246 } 248 }
247 249
248 Version GetVersion() { 250 Version GetVersion() {
249 return OSInfo::GetInstance()->version(); 251 return OSInfo::GetInstance()->version();
250 } 252 }
251 253
252 } // namespace win 254 } // namespace win
253 } // namespace base 255 } // namespace base
OLDNEW
« no previous file with comments | « base/win/windows_version.h ('k') | content/browser/gpu/gpu_data_manager_impl_private.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698