Index: views/controls/label.cc |
=================================================================== |
--- views/controls/label.cc (revision 42180) |
+++ views/controls/label.cc (working copy) |
@@ -12,6 +12,7 @@ |
#include "app/l10n_util.h" |
#include "app/resource_bundle.h" |
#include "app/text_elider.h" |
+#include "base/i18n/rtl.h" |
#include "base/logging.h" |
#include "base/utf_string_conversions.h" |
#include "gfx/color_utils.h" |
@@ -148,8 +149,8 @@ |
// characters. We use the locale settings because an URL is always treated |
// as an LTR string, even if its containing view does not use an RTL UI |
// layout. |
- if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) |
- l10n_util::WrapStringWithLTRFormatting(paint_text); |
+ if (base::i18n::IsRTL()) |
+ base::i18n::WrapStringWithLTRFormatting(paint_text); |
} else { |
*paint_text = text_; |
} |