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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm

Issue 1025303003: [Extensions Toolbar Mac] Adjust equality comparisons in container code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/cocoa/extensions/browser_actions_container_view.mm
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm
index 725d2262a12b92c0300fb73281c28ccb324509f7..d5338ae104002e17c74bbdeeba14882bdb28d35b 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm
@@ -168,10 +168,10 @@ const CGFloat kMinimumContainerWidth = 3.0;
if ((dX < 0.0 && !canDragLeft_) || (dX > 0.0 && !canDragRight_))
return;
- if (NSWidth(containerFrame) == kMinimumContainerWidth)
+ if (NSWidth(containerFrame) <= kMinimumContainerWidth)
return;
- grippyPinned_ = NSWidth(containerFrame) == maxAllowedWidth;
+ grippyPinned_ = NSWidth(containerFrame) >= maxAllowedWidth;
containerFrame.origin.x += dX;
[self setFrame:containerFrame];
« 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