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

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

Issue 2555033003: Add ScopedMacRTL class for Cocoa browser RTL testing (Closed)
Patch Set: Whitespace 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..e3f42a0d8ffb505d942efb881a1da096665d4d2a 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -43,7 +43,6 @@
#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"
#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"
@@ -76,6 +75,7 @@
#import "ui/base/cocoa/controls/hyperlink_text_view.h"
#import "ui/base/cocoa/hover_image_button.h"
#include "ui/base/cocoa/window_size_constants.h"
+#import "ui/base/cocoa/rtl_feature.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/l10n/l10n_util_mac.h"
#include "ui/base/resource/resource_bundle.h"
@@ -1367,9 +1367,8 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
[window accessibilitySetOverrideValue:
l10n_util::GetNSString(IDS_PROFILES_NEW_AVATAR_MENU_ACCESSIBLE_NAME)
forAttribute:NSAccessibilityHelpAttribute];
- BOOL shouldUseLeadingEdgeForBubble =
- cocoa_l10n_util::ShouldDoExperimentalRTLLayout() &&
- !cocoa_l10n_util::ShouldFlipWindowControlsInRTL();
+ BOOL shouldUseLeadingEdgeForBubble = ui::ShouldDoExperimentalRTLLayout() &&
+ !ui::ShouldFlipWindowControlsInRTL();
[[self bubble]
setAlignment:shouldUseLeadingEdgeForBubble
? info_bubble::kAlignLeadingEdgeToAnchorEdge

Powered by Google App Engine
This is Rietveld 408576698