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

Unified Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 15769018: [Autofill] Determine Popup RTLness from page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Responding to comments Created 7 years, 6 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/ui/autofill/autofill_dialog_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
index 5029cb3e4a79b180a096c396f9dd994eb1f45e38..62e9b20fd0bc5f7d0786c7f9b8df2baf74af1684 100644
--- a/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc
@@ -10,6 +10,7 @@
#include "base/base64.h"
#include "base/bind.h"
+#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/prefs/pref_service.h"
#include "base/string_util.h"
@@ -1369,7 +1370,9 @@ void AutofillDialogControllerImpl::UserEditedOrActivatedInput(
popup_controller_,
weak_ptr_factory_.GetWeakPtr(),
parent_view,
- content_bounds);
+ content_bounds,
+ base::i18n::IsRTL() ?
+ base::i18n::RIGHT_TO_LEFT : base::i18n::LEFT_TO_RIGHT);
Ilya Sherman 2013/06/06 21:20:47 nit: Indent this line two more spaces.
csharp 2013/06/07 15:22:06 Done.
popup_controller_->Show(popup_values,
popup_labels,
popup_icons,

Powered by Google App Engine
This is Rietveld 408576698