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

Unified Diff: base/win/windows_version.h

Issue 6713107: Make the windows_version.h functions threadsafe by using a singleton. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: base/win/windows_version.h
===================================================================
--- base/win/windows_version.h (revision 79219)
+++ base/win/windows_version.h (working copy)
@@ -12,15 +12,15 @@
namespace win {
// NOTE: Keep these in order so callers can do things like
-// "if (GetWinVersion() > WINVERSION_2000) ...". It's OK to change the values,
-// though.
+// "if (base::win::GetVersion() > base::win::VERSION_2000) ...". It's OK to
+// change the values, though.
enum Version {
VERSION_PRE_2000 = 0, // Not supported
VERSION_2000 = 1, // Not supported
VERSION_XP = 2,
VERSION_SERVER_2003 = 3, // Also includes Windows XP Professional x64 edition
VERSION_VISTA = 4,
- VERSION_2008 = 5,
+ VERSION_SERVER_2008 = 5,
VERSION_WIN7 = 6,
};
« base/sys_info_win.cc ('K') | « base/sys_info_win.cc ('k') | base/win/windows_version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698