Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Unified Diff: chrome/browser/tab_contents/tab_contents.cc

Issue 1073005: Move RTL related functions from app/l10n_util to base/i18n/rtl... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents.cc
===================================================================
--- chrome/browser/tab_contents/tab_contents.cc (revision 42180)
+++ chrome/browser/tab_contents/tab_contents.cc (working copy)
@@ -9,6 +9,7 @@
#include "app/text_elider.h"
#include "base/auto_reset.h"
#include "base/file_version_info.h"
+#include "base/i18n/rtl.h"
#include "base/process_util.h"
#include "base/string16.h"
#include "base/string_util.h"
@@ -2855,8 +2856,8 @@
std::wstring base_address = gfx::ElideUrl(clean_url, gfx::Font(), 0,
profile()->GetPrefs()->GetString(prefs::kAcceptLanguages));
// Force URL to have LTR directionality.
- if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT)
- l10n_util::WrapStringWithLTRFormatting(&base_address);
+ if (base::i18n::IsRTL())
+ base::i18n::WrapStringWithLTRFormatting(&base_address);
return l10n_util::GetStringF(
is_alert ? IDS_JAVASCRIPT_ALERT_TITLE : IDS_JAVASCRIPT_MESSAGEBOX_TITLE,
« no previous file with comments | « chrome/browser/ssl/ssl_policy.cc ('k') | chrome/browser/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698