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

Unified Diff: components/autofill/core/browser/autofill_manager.cc

Issue 2542593003: HTTP Bad: Add a seperator between http warning message and other entries (Closed)
Patch Set: fix win trybots 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
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/core/browser/autofill_manager.cc
diff --git a/components/autofill/core/browser/autofill_manager.cc b/components/autofill/core/browser/autofill_manager.cc
index 5fa3865f976babe87c232e41f7d7108a4fabe5a2..1546ad5f2b8ad272d56f1c1f3877f337b3444569 100644
--- a/components/autofill/core/browser/autofill_manager.cc
+++ b/components/autofill/core/browser/autofill_manager.cc
@@ -593,6 +593,10 @@ void AutofillManager::OnQueryFormFieldAutofill(int query_id,
// On top of the explanation message, first show a "Payment not secure"
// message.
if (IsCreditCardAutofillHttpWarningEnabled()) {
+#if !defined(OS_ANDROID)
+ suggestions.insert(suggestions.begin(), Suggestion());
+ suggestions.front().frontend_id = POPUP_ITEM_ID_SEPARATOR;
+#endif
suggestions.insert(suggestions.begin(),
CreateHttpWarningMessageSuggestionItem(
form_structure->source_url()));
« no previous file with comments | « no previous file | components/autofill/core/browser/autofill_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698