| Index: chrome/browser/find_bar_controller.cc
|
| ===================================================================
|
| --- chrome/browser/find_bar_controller.cc (revision 42180)
|
| +++ chrome/browser/find_bar_controller.cc (working copy)
|
| @@ -4,7 +4,7 @@
|
|
|
| #include "chrome/browser/find_bar_controller.h"
|
|
|
| -#include "app/l10n_util.h"
|
| +#include "base/i18n/rtl.h"
|
| #include "build/build_config.h"
|
| #include "chrome/browser/find_bar.h"
|
| #include "chrome/browser/tab_contents/navigation_entry.h"
|
| @@ -154,7 +154,7 @@
|
| gfx::Rect view_location,
|
| const gfx::Rect& dialog_bounds,
|
| const gfx::Rect& avoid_overlapping_rect) {
|
| - if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
|
| + if (base::i18n::IsRTL()) {
|
| int boundary = dialog_bounds.width() - view_location.width();
|
| view_location.set_x(std::min(view_location.x(), boundary));
|
| } else {
|
| @@ -168,7 +168,7 @@
|
| // rectangle.
|
| if (!avoid_overlapping_rect.IsEmpty() &&
|
| avoid_overlapping_rect.Intersects(new_pos)) {
|
| - if (l10n_util::GetTextDirection() == l10n_util::RIGHT_TO_LEFT) {
|
| + if (base::i18n::IsRTL()) {
|
| new_pos.set_x(avoid_overlapping_rect.x() +
|
| avoid_overlapping_rect.width() +
|
| (2 * kMinFindWndDistanceFromSelection));
|
|
|