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

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

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Fix unreachable code 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 175e4db36ae2b7cc87a0243c748793cacff4813f..7e3ed58587187be7efd49fb68e654eb1b2dda88d 100644
--- a/chrome/browser/ui/prefs/prefs_tab_helper.cc
+++ b/chrome/browser/ui/prefs/prefs_tab_helper.cc
@@ -59,10 +59,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;
@@ -167,8 +163,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