Index: chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm |
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm |
index 60d3c426e7bef1b80c8b0f3b6a1503b0607ad855..44b5cbc103699d6a2cc9f272af7f5cc7f17cb873 100644 |
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm |
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm |
@@ -20,7 +20,6 @@ |
#import "chrome/browser/ui/cocoa/extensions/extension_popup_controller.h" |
#import "chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.h" |
#import "chrome/browser/ui/cocoa/image_button_cell.h" |
-#import "chrome/browser/ui/cocoa/l10n_util.h" |
#import "chrome/browser/ui/cocoa/menu_button.h" |
#import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" |
#include "chrome/browser/ui/extensions/extension_message_bubble_bridge.h" |
@@ -582,14 +581,11 @@ |
if (NSMinX([button frameAfterAnimation]) == NSMinX(buttonFrame)) |
continue; |
- // In LTR, We set the x-origin by calculating the proper distance from the |
- // right edge in the container so that, if the container is animating, the |
+ // We set the x-origin by calculating the proper distance from the right |
+ // edge in the container so that, if the container is animating, the |
// button appears stationary. |
- if (!cocoa_l10n_util::ShouldDoExperimentalRTLLayout()) { |
- buttonFrame.origin.x = NSWidth([containerView_ frame]) - |
- (toolbarActionsBar_->GetPreferredSize().width() - |
- NSMinX(buttonFrame)); |
- } |
+ buttonFrame.origin.x = NSWidth([containerView_ frame]) - |
+ (toolbarActionsBar_->GetPreferredSize().width() - NSMinX(buttonFrame)); |
[button setFrame:buttonFrame animate:NO]; |
} |
} |
@@ -787,16 +783,9 @@ |
} |
- (void)updateGrippyCursors { |
- BOOL canClose = [self visibleButtonCount] > 0; |
- BOOL canOpen = toolbarActionsBar_->GetIconCount() != [buttons_ count]; |
[containerView_ |
- setCanDragLeft:cocoa_l10n_util::ShouldDoExperimentalRTLLayout() |
- ? canClose |
- : canOpen]; |
- [containerView_ |
- setCanDragRight:cocoa_l10n_util::ShouldDoExperimentalRTLLayout() |
- ? canOpen |
- : canClose]; |
+ setCanDragLeft:toolbarActionsBar_->GetIconCount() != [buttons_ count]]; |
+ [containerView_ setCanDragRight:[self visibleButtonCount] > 0]; |
[[containerView_ window] invalidateCursorRectsForView:containerView_]; |
} |