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

Side by Side Diff: components/autofill/core/browser/autofill_manager.cc

Issue 2505533002: Http Bad: Add "Learn more" sublabel to warning message and make it clickable (Closed)
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/core/browser/autofill_manager.h" 5 #include "components/autofill/core/browser/autofill_manager.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 type == CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR; 183 type == CREDIT_CARD_EXP_DATE_4_DIGIT_YEAR;
184 } 184 }
185 185
186 // Create http bad warning message at the top of autofill popup list showing 186 // Create http bad warning message at the top of autofill popup list showing
187 // "Payment not secure" when users are on http sites or broken https sites. 187 // "Payment not secure" when users are on http sites or broken https sites.
188 Suggestion CreateHttpWarningMessageSuggestionItem(const GURL& source_url) { 188 Suggestion CreateHttpWarningMessageSuggestionItem(const GURL& source_url) {
189 Suggestion cc_field_http_warning_suggestion( 189 Suggestion cc_field_http_warning_suggestion(
190 l10n_util::GetStringUTF16(IDS_AUTOFILL_CREDIT_CARD_HTTP_WARNING_MESSAGE)); 190 l10n_util::GetStringUTF16(IDS_AUTOFILL_CREDIT_CARD_HTTP_WARNING_MESSAGE));
191 cc_field_http_warning_suggestion.frontend_id = 191 cc_field_http_warning_suggestion.frontend_id =
192 POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE; 192 POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE;
193 cc_field_http_warning_suggestion.label =
194 l10n_util::GetStringUTF16(IDS_AUTOFILL_HTTP_WARNING_LEARN_MORE);
193 cc_field_http_warning_suggestion.icon = 195 cc_field_http_warning_suggestion.icon =
194 (source_url.is_valid() && source_url.SchemeIs("http")) 196 (source_url.is_valid() && source_url.SchemeIs("http"))
195 ? base::ASCIIToUTF16("httpWarning") 197 ? base::ASCIIToUTF16("httpWarning")
196 : base::ASCIIToUTF16("httpsInvalid"); 198 : base::ASCIIToUTF16("httpsInvalid");
197 199
198 return cc_field_http_warning_suggestion; 200 return cc_field_http_warning_suggestion;
199 } 201 }
200 202
201 } // namespace 203 } // namespace
202 204
(...skipping 1913 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 if (i > 0) 2118 if (i > 0)
2117 fputs("Next oldest form:\n", file); 2119 fputs("Next oldest form:\n", file);
2118 } 2120 }
2119 fputs("\n", file); 2121 fputs("\n", file);
2120 2122
2121 fclose(file); 2123 fclose(file);
2122 } 2124 }
2123 #endif // ENABLE_FORM_DEBUG_DUMP 2125 #endif // ENABLE_FORM_DEBUG_DUMP
2124 2126
2125 } // namespace autofill 2127 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698