OLD | NEW |
---|---|
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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
571 IDS_AUTOFILL_WARNING_INSECURE_CONNECTION)); | 571 IDS_AUTOFILL_WARNING_INSECURE_CONNECTION)); |
572 warning_suggestion.frontend_id = POPUP_ITEM_ID_WARNING_MESSAGE; | 572 warning_suggestion.frontend_id = POPUP_ITEM_ID_WARNING_MESSAGE; |
573 suggestions.assign(1, warning_suggestion); | 573 suggestions.assign(1, warning_suggestion); |
574 | 574 |
575 // On top of the explanation message, first show a "Payment not secure" | 575 // On top of the explanation message, first show a "Payment not secure" |
576 // message. | 576 // message. |
577 if (IsCreditCardAutofillHttpWarningEnabled()) { | 577 if (IsCreditCardAutofillHttpWarningEnabled()) { |
578 Suggestion cc_field_http_warning_suggestion(l10n_util::GetStringUTF16( | 578 Suggestion cc_field_http_warning_suggestion(l10n_util::GetStringUTF16( |
579 IDS_AUTOFILL_CREDIT_CARD_HTTP_WARNING_MESSAGE)); | 579 IDS_AUTOFILL_CREDIT_CARD_HTTP_WARNING_MESSAGE)); |
580 cc_field_http_warning_suggestion.frontend_id = | 580 cc_field_http_warning_suggestion.frontend_id = |
581 POPUP_ITEM_ID_WARNING_MESSAGE; | 581 autofill::POPUP_ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE; |
Mathieu
2016/11/12 12:52:05
not need for autofill::
lshang
2016/11/14 10:51:01
Done.
| |
582 suggestions.insert(suggestions.begin(), | 582 suggestions.insert(suggestions.begin(), |
583 cc_field_http_warning_suggestion); | 583 cc_field_http_warning_suggestion); |
584 } | 584 } |
585 } else { | 585 } else { |
586 bool section_is_autofilled = | 586 bool section_is_autofilled = |
587 SectionIsAutofilled(*form_structure, form, | 587 SectionIsAutofilled(*form_structure, form, |
588 autofill_field->section()); | 588 autofill_field->section()); |
589 if (section_is_autofilled) { | 589 if (section_is_autofilled) { |
590 // If the relevant section is auto-filled and the renderer is querying | 590 // If the relevant section is auto-filled and the renderer is querying |
591 // for suggestions, then the user is editing the value of a field. | 591 // for suggestions, then the user is editing the value of a field. |
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2103 if (i > 0) | 2103 if (i > 0) |
2104 fputs("Next oldest form:\n", file); | 2104 fputs("Next oldest form:\n", file); |
2105 } | 2105 } |
2106 fputs("\n", file); | 2106 fputs("\n", file); |
2107 | 2107 |
2108 fclose(file); | 2108 fclose(file); |
2109 } | 2109 } |
2110 #endif // ENABLE_FORM_DEBUG_DUMP | 2110 #endif // ENABLE_FORM_DEBUG_DUMP |
2111 | 2111 |
2112 } // namespace autofill | 2112 } // namespace autofill |
OLD | NEW |