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

Unified Diff: chrome/browser/ui/cocoa/new_tab_button.mm

Issue 2346783002: mac rtl: pin profile switcher to left edge in rtl (Closed)
Patch Set: ExperimentalMacRTLIsEnabled -> ShouldDoExperimentalRTLLayout Created 4 years, 3 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 | « chrome/browser/ui/cocoa/l10n_util.mm ('k') | chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/new_tab_button.mm
diff --git a/chrome/browser/ui/cocoa/new_tab_button.mm b/chrome/browser/ui/cocoa/new_tab_button.mm
index cf766a10eb9441aa44cabcecb39ea66af935c64e..66550701d245f9a62403613f3a84447906b49f7c 100644
--- a/chrome/browser/ui/cocoa/new_tab_button.mm
+++ b/chrome/browser/ui/cocoa/new_tab_button.mm
@@ -4,7 +4,6 @@
#import "chrome/browser/ui/cocoa/new_tab_button.h"
-#include "base/i18n/rtl.h"
#include "base/mac/foundation_util.h"
#include "base/mac/sdk_forward_declarations.h"
#import "chrome/browser/ui/cocoa/image_button_cell.h"
@@ -417,7 +416,7 @@ + (NSBezierPath*)newTabButtonBezierPathWithLineWidth:(CGFloat)lineWidth {
// The SVG path is flipped for some reason, so flip it back. However, in RTL,
// we'd need to flip it again below, so when in RTL mode just leave the flip
// out altogether.
- if (!cocoa_l10n_util::ExperimentalMacRTLIsEnabled() || !base::i18n::IsRTL()) {
+ if (!cocoa_l10n_util::ShouldDoExperimentalRTLLayout()) {
const CGFloat kSVGHeight = 32;
NSAffineTransformStruct flipStruct = {1, 0, 0, -1, 0, kSVGHeight};
NSAffineTransform* flipTransform = [NSAffineTransform transform];
« no previous file with comments | « chrome/browser/ui/cocoa/l10n_util.mm ('k') | chrome/browser/ui/cocoa/profiles/avatar_button_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698