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

Unified Diff: Source/platform/win/SystemInfo.cpp

Issue 26113005: Remove core/platform/win (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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
« no previous file with comments | « Source/platform/win/SystemInfo.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/win/SystemInfo.cpp
diff --git a/Source/core/platform/win/SystemInfo.cpp b/Source/platform/win/SystemInfo.cpp
similarity index 93%
rename from Source/core/platform/win/SystemInfo.cpp
rename to Source/platform/win/SystemInfo.cpp
index 717ae353a6893cea02f2ebf336b0262147a1503e..553f27e076591ccc24b19447836c0bb62848f456 100644
--- a/Source/core/platform/win/SystemInfo.cpp
+++ b/Source/platform/win/SystemInfo.cpp
@@ -24,7 +24,7 @@
*/
#include "config.h"
-#include "core/platform/win/SystemInfo.h"
+#include "platform/win/SystemInfo.h"
#include <windows.h>
@@ -45,9 +45,9 @@ WindowsVersion windowsVersion(int* major, int* minor)
majorVersion = versionInfo.dwMajorVersion;
minorVersion = versionInfo.dwMinorVersion;
- if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32s)
+ if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32s) {
version = Windows3_1;
- else if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
+ } else if (versionInfo.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS) {
if (!minorVersion)
version = Windows95;
else
@@ -63,8 +63,9 @@ WindowsVersion windowsVersion(int* major, int* minor)
version = (majorVersion == 6 && !minorVersion) ? WindowsVista : Windows7;
else
version = WindowsServer2008;
- } else
+ } else {
version = (majorVersion == 4) ? WindowsNT4 : WindowsNT3;
+ }
}
}
« no previous file with comments | « Source/platform/win/SystemInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698