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

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

Issue 254583004: Fix incorrect bitmask check. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
diff --git a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
index ad484c10714e5e20812a27f956ba371852ddb91b..19e4baab5d3feb13ffa0f4bb778d7edc8edc696b 100644
--- a/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
+++ b/chrome/browser/ui/views/frame/minimize_button_metrics_win.cc
@@ -21,8 +21,8 @@ int GetMinimizeButtonOffsetForWindow(HWND hwnd) {
reinterpret_cast<WPARAM>(&titlebar_info));
if (titlebar_info.rgrect[2].left == titlebar_info.rgrect[2].right ||
- (titlebar_info.rgstate[2] & (STATE_SYSTEM_INVISIBLE ||
- STATE_SYSTEM_OFFSCREEN ||
+ (titlebar_info.rgstate[2] & (STATE_SYSTEM_INVISIBLE |
+ STATE_SYSTEM_OFFSCREEN |
STATE_SYSTEM_UNAVAILABLE))) {
return 0;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698