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

Unified Diff: components/autofill/browser/autofill_external_delegate.cc

Issue 15769018: [Autofill] Determine Popup RTLness from page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android compile 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: components/autofill/browser/autofill_external_delegate.cc
diff --git a/components/autofill/browser/autofill_external_delegate.cc b/components/autofill/browser/autofill_external_delegate.cc
index 26e53bf4e55530b734990c6f95719237c412b7b5..d5ac726fb44f465fe6f92de4a748b3f5b2c9f2ff 100644
--- a/components/autofill/browser/autofill_external_delegate.cc
+++ b/components/autofill/browser/autofill_external_delegate.cc
@@ -133,7 +133,13 @@ void AutofillExternalDelegate::OnSuggestionsReturned(
// Send to display.
if (autofill_query_field_.is_focusable) {
autofill_manager_->delegate()->ShowAutofillPopup(
- element_bounds_, values, labels, icons, ids, GetWeakPtr());
+ element_bounds_,
+ autofill_query_field_.text_direction,
+ values,
+ labels,
+ icons,
+ ids,
+ GetWeakPtr());
}
}
@@ -153,7 +159,13 @@ void AutofillExternalDelegate::OnShowPasswordSuggestions(
std::vector<int> password_ids(suggestions.size(),
WebAutofillClient::MenuItemIDPasswordEntry);
autofill_manager_->delegate()->ShowAutofillPopup(
- element_bounds_, suggestions, empty, empty, password_ids, GetWeakPtr());
+ element_bounds_,
+ autofill_query_field_.text_direction,
+ suggestions,
+ empty,
+ empty,
+ password_ids,
+ GetWeakPtr());
}
void AutofillExternalDelegate::SetCurrentDataListValues(

Powered by Google App Engine
This is Rietveld 408576698