diff options
Diffstat (limited to 'chrome/browser/gtk/go_button_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/go_button_gtk.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/gtk/go_button_gtk.cc b/chrome/browser/gtk/go_button_gtk.cc index eba8f82..2df9932 100644 --- a/chrome/browser/gtk/go_button_gtk.cc +++ b/chrome/browser/gtk/go_button_gtk.cc @@ -5,6 +5,7 @@ #include "chrome/browser/gtk/go_button_gtk.h" #include "app/l10n_util.h" +#include "base/i18n/rtl.h" #include "base/logging.h" #include "base/message_loop.h" #include "chrome/app/chrome_dll_resource.h" @@ -175,8 +176,8 @@ gboolean GoButtonGtk::OnQueryTooltip(GtkTooltip* tooltip) { std::string text; if (visible_mode_ == MODE_GO) { std::wstring current_text_wstr(location_bar_->location_entry()->GetText()); - if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) - l10n_util::WrapStringWithLTRFormatting(¤t_text_wstr); + if (base::i18n::IsRTL()) + base::i18n::WrapStringWithLTRFormatting(¤t_text_wstr); string16 current_text = WideToUTF16Hack( l10n_util::TruncateString(current_text_wstr, kMaxTooltipTextLength)); |