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

Unified Diff: chrome/browser/gtk/extension_popup_gtk.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/gtk/extension_installed_bubble_gtk.cc ('k') | chrome/browser/gtk/find_bar_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/extension_popup_gtk.cc
===================================================================
--- chrome/browser/gtk/extension_popup_gtk.cc (revision 42180)
+++ chrome/browser/gtk/extension_popup_gtk.cc (working copy)
@@ -6,7 +6,7 @@
#include <gtk/gtk.h>
-#include "app/l10n_util.h"
+#include "base/i18n/rtl.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_window.h"
#include "chrome/browser/profile.h"
@@ -74,7 +74,7 @@
// want to put the arrow at the upper-right corner of the bubble to match the
// page and app menus.
InfoBubbleGtk::ArrowLocationGtk arrow_location =
- (l10n_util::GetTextDirection() == l10n_util::LEFT_TO_RIGHT) ?
+ !base::i18n::IsRTL() ?
InfoBubbleGtk::ARROW_LOCATION_TOP_RIGHT :
InfoBubbleGtk::ARROW_LOCATION_TOP_LEFT;
bubble_ = InfoBubbleGtk::Show(browser_->window()->GetNativeHandle(),
« no previous file with comments | « chrome/browser/gtk/extension_installed_bubble_gtk.cc ('k') | chrome/browser/gtk/find_bar_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698