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

Unified Diff: gfx/win_util.cc

Issue 3823002: Move windows version-related stuff out of base/win_util and into base/win/win... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
Index: gfx/win_util.cc
===================================================================
--- gfx/win_util.cc (revision 62510)
+++ gfx/win_util.cc (working copy)
@@ -6,7 +6,7 @@
#include <windows.h>
-#include "base/win_util.h"
+#include "base/win/windows_version.h"
namespace {
@@ -29,10 +29,10 @@
static bool available = false;
if (!checked) {
- win_util::WinVersion version = win_util::GetWinVersion();
- if (version < win_util::WINVERSION_VISTA)
+ base::win::Version version = base::win::GetVersion();
+ if (version < base::win::VERSION_VISTA)
available = false;
- else if (version >= win_util::WINVERSION_WIN7)
+ else if (version >= base::win::VERSION_WIN7)
available = true;
else
available = DynamicLibraryPresent(L"d2d1.dll");
@@ -47,10 +47,10 @@
static bool available = false;
if (!checked) {
- win_util::WinVersion version = win_util::GetWinVersion();
- if (version < win_util::WINVERSION_VISTA)
+ base::win::Version version = base::win::GetVersion();
+ if (version < base::win::VERSION_VISTA)
available = false;
- else if (version >= win_util::WINVERSION_WIN7)
+ else if (version >= base::win::VERSION_WIN7)
available = true;
else
available = DynamicLibraryPresent(L"dwrite.dll");

Powered by Google App Engine
This is Rietveld 408576698