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

Unified Diff: chrome/browser/ui/prefs/prefs_tab_helper.cc

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Fix reversed conditionnal Created 3 years, 7 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: chrome/browser/ui/prefs/prefs_tab_helper.cc
diff --git a/chrome/browser/ui/prefs/prefs_tab_helper.cc b/chrome/browser/ui/prefs/prefs_tab_helper.cc
index cafaf268a1aee2cd6e6237cde54dc363f132061e..4d4fd0e7a4bb634db9370568701798c4e766bb32 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc
@@ -58,10 +58,6 @@
#include "chrome/browser/themes/theme_service_factory.h"
#endif
-#if defined(OS_WIN)
-#include "base/win/windows_version.h"
-#endif
-
using content::WebContents;
using content::WebPreferences;
@@ -166,8 +162,7 @@ bool ShouldUseAlternateDefaultFixedFont(const std::string& script) {
return false;
UINT smooth_type = 0;
SystemParametersInfo(SPI_GETFONTSMOOTHINGTYPE, 0, &smooth_type, 0);
- return (base::win::GetVersion() >= base::win::VERSION_WIN7) &&
- (smooth_type == FE_FONTSMOOTHINGCLEARTYPE);
+ return smooth_type == FE_FONTSMOOTHINGCLEARTYPE;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698