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

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

Issue 2576143002: Tweak payment autofill disabled message in form-not-secure (Closed)
Patch Set: fix comment wrapping Created 4 years 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_popup_controller_impl.cc
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
index bcdcaf6fa79b3104cd20d627bffa6840c479085f..3a8b2f3b2b16b3a86206725b621d35edcfed3cb2 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_impl.cc
@@ -291,6 +291,8 @@ bool AutofillPopupControllerImpl::IsWarning(size_t index) const {
return suggestions_[index].frontend_id ==
POPUP_ITEM_ID_INSECURE_CONTEXT_PAYMENT_DISABLED_MESSAGE ||
suggestions_[index].frontend_id ==
+ POPUP_ITEM_ID_PAYMENT_DISABLED_MESSAGE ||
+ suggestions_[index].frontend_id ==
POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE;
}
@@ -464,6 +466,7 @@ bool AutofillPopupControllerImpl::RemoveSelectedLine() {
bool AutofillPopupControllerImpl::CanAccept(int id) {
return id != POPUP_ITEM_ID_SEPARATOR &&
+ id != POPUP_ITEM_ID_PAYMENT_DISABLED_MESSAGE &&
id != POPUP_ITEM_ID_INSECURE_CONTEXT_PAYMENT_DISABLED_MESSAGE &&
id != POPUP_ITEM_ID_TITLE;
}

Powered by Google App Engine
This is Rietveld 408576698