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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm

Issue 2555033003: Add ScopedMacRTL class for Cocoa browser RTL testing (Closed)
Patch Set: Add to deps AFTER deps exists Created 4 years 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
Index: chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index c6f5b449cac641c6bc23e0fe581307aaaf836061..25bd2d07022972a3981a8ebe4660e3d2b58ec679 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -43,7 +43,7 @@
#include "chrome/browser/ui/cocoa/chrome_style.h"
#import "chrome/browser/ui/cocoa/info_bubble_view.h"
#import "chrome/browser/ui/cocoa/info_bubble_window.h"
-#include "chrome/browser/ui/cocoa/l10n_util.h"
+#import "ui/base/cocoa/rtl_util.h"
#include "chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h"
#import "chrome/browser/ui/cocoa/profiles/user_manager_mac.h"
#include "chrome/browser/ui/profile_chooser_constants.h"
@@ -1368,8 +1368,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
l10n_util::GetNSString(IDS_PROFILES_NEW_AVATAR_MENU_ACCESSIBLE_NAME)
forAttribute:NSAccessibilityHelpAttribute];
BOOL shouldUseLeadingEdgeForBubble =
- cocoa_l10n_util::ShouldDoExperimentalRTLLayout() &&
- !cocoa_l10n_util::ShouldFlipWindowControlsInRTL();
+ cocoa_rtl_util::ShouldDoExperimentalRTLLayout() &&
+ !cocoa_rtl_util::ShouldFlipWindowControlsInRTL();
[[self bubble]
setAlignment:shouldUseLeadingEdgeForBubble
? info_bubble::kAlignLeadingEdgeToAnchorEdge

Powered by Google App Engine
This is Rietveld 408576698