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

Unified Diff: chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc

Issue 2909943003: Removing useless Win7 checks + standardize its use (Closed)
Patch Set: Various nits 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/views/frame/browser_desktop_window_tree_host_win.cc
diff --git a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
index bbd6e944a22e48920d9394240488cfb59e3b12ca..f70dabe1dbda7b7f9a9ce4536176e36f8de3e225 100644
--- a/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
+++ b/chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
@@ -325,7 +325,7 @@ MARGINS BrowserDesktopWindowTreeHostWin::GetDWMFrameMargins() const {
gfx::Point right_bottom = display::win::ScreenWin::DIPToClientPoint(
hwnd, gfx::Point(thicknesses.right(), thicknesses.bottom()));
- if (base::win::GetVersion() <= base::win::VERSION_WIN7) {
+ if (base::win::GetVersion() < base::win::VERSION_WIN8) {
// The 2 px (not DIP) at the inner edges of the glass are a light and
// dark line, so we must inset further to account for those.
constexpr gfx::Vector2d kDWMEdgeThickness(2, 2);

Powered by Google App Engine
This is Rietveld 408576698