summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 01:39:56 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 01:39:56 +0000
commit4a4afe389baae7c715da981aff490dda7f58f7a9 (patch)
tree737eaf351bac891f35342676ddbcf2ed256b69d8 /views
parentf5fb4d4bc5bc2477eb3d7aadd13bd5c487b79559 (diff)
downloadchromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.zip
chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.tar.gz
chromium_src-4a4afe389baae7c715da981aff490dda7f58f7a9.tar.bz2
Use GetDisplayStringInLTRDirectionality() in more places to simplify code.
BUG=none TEST=none Review URL: http://codereview.chromium.org/1928004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/label.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/controls/label.cc b/views/controls/label.cc
index 89e9a572..861fc46 100644
--- a/views/controls/label.cc
+++ b/views/controls/label.cc
@@ -318,8 +318,7 @@ void Label::CalculateDrawStringParams(std::wstring* paint_text,
// 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 (base::i18n::IsRTL())
- base::i18n::WrapStringWithLTRFormatting(paint_text);
+ base::i18n::GetDisplayStringInLTRDirectionality(paint_text);
} else {
*paint_text = text_;
}