| Index: chrome/browser/ui/cocoa/browser_window_layout.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_layout.mm b/chrome/browser/ui/cocoa/browser_window_layout.mm
|
| index b9dc6328d96078f6ed13db66fb3950db546c4192..05165b3b4d50204ecbe23f51762d67b4a63ae1b5 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_layout.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_layout.mm
|
| @@ -210,7 +210,7 @@ const CGFloat kLocationBarRightOffset = 35;
|
|
|
| // Set left indentation based on fullscreen mode status.
|
| if (!parameters_.inAnyFullscreen || layout.addCustomWindowControls)
|
| - layout.leftIndent = [TabStripController defaultLeftIndentForControls];
|
| + layout.leadingIndent = [TabStripController defaultLeadingIndentForControls];
|
|
|
| // Lay out the icognito/avatar badge because calculating the indentation on
|
| // the right depends on it.
|
| @@ -257,10 +257,9 @@ const CGFloat kLocationBarRightOffset = 35;
|
| if (parameters_.shouldShowAvatar) {
|
| maxX = std::min(maxX, NSMinX(layout.avatarFrame));
|
| }
|
| - layout.rightIndent = width - maxX;
|
| + layout.trailingIndent = width - maxX;
|
|
|
| if (cocoa_l10n_util::ShouldDoExperimentalRTLLayout()) {
|
| - std::swap(layout.leftIndent, layout.rightIndent);
|
| layout.avatarFrame.origin.x =
|
| width - parameters_.avatarSize.width - layout.avatarFrame.origin.x;
|
| }
|
|
|