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

Unified Diff: chrome/browser/gtk/edit_search_engine_dialog.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
Index: chrome/browser/gtk/edit_search_engine_dialog.cc
===================================================================
--- chrome/browser/gtk/edit_search_engine_dialog.cc (revision 42180)
+++ chrome/browser/gtk/edit_search_engine_dialog.cc (working copy)
@@ -8,6 +8,7 @@
#include "app/l10n_util.h"
#include "app/resource_bundle.h"
+#include "base/i18n/rtl.h"
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/gtk/accessible_widget_helper_gtk.h"
@@ -182,7 +183,7 @@
// is displayed correctly when rendered in an RTL context.
std::string description =
l10n_util::GetStringUTF8(IDS_SEARCH_ENGINES_EDITOR_URL_DESCRIPTION_LABEL);
- if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
+ if (base::i18n::IsRTL()) {
const std::string reversed_percent("s%");
std::wstring::size_type percent_index =
description.find("%s", static_cast<std::string::size_type>(0));
« no previous file with comments | « chrome/browser/gtk/content_blocked_bubble_gtk.cc ('k') | chrome/browser/gtk/extension_installed_bubble_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698