| Index: ui/message_center/views/bounded_label.cc
|
| diff --git a/ui/message_center/views/bounded_label.cc b/ui/message_center/views/bounded_label.cc
|
| index 0acad8e22027f3b3da2036cd5d9fefd5614f1592..99c66f80b77c51d9594f815115f5f15e49b6fff8 100644
|
| --- a/ui/message_center/views/bounded_label.cc
|
| +++ b/ui/message_center/views/bounded_label.cc
|
| @@ -198,8 +198,11 @@ int InnerBoundedLabel::GetTextFlags() {
|
| if (SkColorGetA(background_color()) != 0xFF)
|
| flags |= gfx::Canvas::NO_SUBPIXEL_RENDERING;
|
|
|
| - if (directionality_mode() ==
|
| - views::Label::AUTO_DETECT_DIRECTIONALITY) {
|
| + if (directionality_mode() == gfx::DIRECTIONALITY_FORCE_LTR) {
|
| + flags |= gfx::Canvas::FORCE_LTR_DIRECTIONALITY;
|
| + } else if (directionality_mode() == gfx::DIRECTIONALITY_FORCE_RTL) {
|
| + flags |= gfx::Canvas::FORCE_RTL_DIRECTIONALITY;
|
| + } else if (directionality_mode() == gfx::DIRECTIONALITY_FROM_TEXT) {
|
| base::i18n::TextDirection direction =
|
| base::i18n::GetFirstStrongCharacterDirection(text());
|
| if (direction == base::i18n::RIGHT_TO_LEFT)
|
|
|