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 99c66f80b77c51d9594f815115f5f15e49b6fff8..0acad8e22027f3b3da2036cd5d9fefd5614f1592 100644 |
--- a/ui/message_center/views/bounded_label.cc |
+++ b/ui/message_center/views/bounded_label.cc |
@@ -198,11 +198,8 @@ |
if (SkColorGetA(background_color()) != 0xFF) |
flags |= gfx::Canvas::NO_SUBPIXEL_RENDERING; |
- 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) { |
+ if (directionality_mode() == |
+ views::Label::AUTO_DETECT_DIRECTIONALITY) { |
base::i18n::TextDirection direction = |
base::i18n::GetFirstStrongCharacterDirection(text()); |
if (direction == base::i18n::RIGHT_TO_LEFT) |