summaryrefslogtreecommitdiffstats
path: root/chrome/browser/renderer_host
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 /chrome/browser/renderer_host
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 'chrome/browser/renderer_host')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 0cca1a9..88729ea 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1292,10 +1292,9 @@ void RenderViewHost::OnMsgSetTooltipText(
// but we use the current approach to match Fx & IE's behavior.
std::wstring wrapped_tooltip_text = tooltip_text;
if (!tooltip_text.empty()) {
- if (text_direction_hint == WebKit::WebTextDirectionLeftToRight &&
- base::i18n::IsRTL()) {
+ if (text_direction_hint == WebKit::WebTextDirectionLeftToRight) {
// Force the tooltip to have LTR directionality.
- base::i18n::WrapStringWithLTRFormatting(&wrapped_tooltip_text);
+ base::i18n::GetDisplayStringInLTRDirectionality(&wrapped_tooltip_text);
} else if (text_direction_hint == WebKit::WebTextDirectionRightToLeft &&
!base::i18n::IsRTL()) {
// Force the tooltip to have RTL directionality.