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

Unified Diff: chrome/browser/ui/android/autofill/autofill_popup_view_android.cc

Issue 2496683003: Http Bad: Add a PopupItemId to identify http warning message (Closed)
Patch Set: minor change Created 4 years, 1 month 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/android/autofill/autofill_popup_view_android.cc
diff --git a/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc b/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc
index 6f07cbcaa530d47bd5e3eaa532ca230a5e769cd0..48cadff52091570d991b5ecbb299d8c810e64ec9 100644
--- a/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc
+++ b/chrome/browser/ui/android/autofill/autofill_popup_view_android.cc
@@ -99,9 +99,12 @@ void AutofillPopupViewAndroid::UpdateBoundsAndRedrawPopup() {
bool is_label_multiline =
suggestion.frontend_id == POPUP_ITEM_ID_WARNING_MESSAGE ||
suggestion.frontend_id == POPUP_ITEM_ID_CREDIT_CARD_SIGNIN_PROMO;
+ bool is_http_warning_message =
+ suggestion.frontend_id == POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE;
Java_AutofillPopupBridge_addToAutofillSuggestionArray(
env, data_array, i, value, label, android_icon_id,
- suggestion.frontend_id, deletable, is_label_multiline);
+ suggestion.frontend_id, deletable, is_label_multiline,
+ is_http_warning_message);
}
Java_AutofillPopupBridge_show(env, java_object_, data_array,

Powered by Google App Engine
This is Rietveld 408576698