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

Unified Diff: chrome/browser/chromeos/compact_location_bar_host.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/browser_theme_provider_gtk.cc ('k') | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/compact_location_bar_host.cc
===================================================================
--- chrome/browser/chromeos/compact_location_bar_host.cc (revision 42180)
+++ chrome/browser/chromeos/compact_location_bar_host.cc (working copy)
@@ -6,8 +6,8 @@
#include <algorithm>
-#include "app/l10n_util.h"
#include "app/slide_animation.h"
+#include "base/i18n/rtl.h"
#include "base/keyboard_codes.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/browser_process.h"
@@ -217,9 +217,8 @@
view()->GetPreferredSize());
// For RTL case x() defines tab right corner.
- if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
+ if (base::i18n::IsRTL())
navbar_bounds.set_x(navbar_bounds.x() + bounds.width());
- }
navbar_bounds.set_x(navbar_bounds.x() + tabstrip->x());
navbar_bounds.set_y(navbar_bounds.y() + tabstrip->y());
« no previous file with comments | « chrome/browser/browser_theme_provider_gtk.cc ('k') | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698