Chromium Code Reviews| Index: components/autofill/core/browser/autofill_external_delegate.h |
| diff --git a/components/autofill/core/browser/autofill_external_delegate.h b/components/autofill/core/browser/autofill_external_delegate.h |
| index 22a002f7e0d40c1441aa7b3c78d16868c2c78d04..da5b49e6ecacccaefd15aa5d80789664fd50d08f 100644 |
| --- a/components/autofill/core/browser/autofill_external_delegate.h |
| +++ b/components/autofill/core/browser/autofill_external_delegate.h |
| @@ -100,8 +100,12 @@ class AutofillExternalDelegate : public AutofillPopupDelegate { |
| // this data. |
| void FillAutofillFormData(int unique_id, bool is_preview); |
| - // Handle applying any Autofill warnings to the Autofill popup. |
| - void ApplyAutofillWarnings(std::vector<Suggestion>* suggestions); |
| + // Will remove Autofill warnings from |suggestions| if there are also |
| + // autocomplete entries in the vector. Note: at this point, it is assumed that |
| + // if there are Autofill warnings, they will be at the head of the vector and |
| + // any entry that is not an Autofill warning is considered an Autocomplete |
| + // entry. |
| + void PossiblyRemoveAutofillWarnings(std::vector<Suggestion>* suggestions); |
| // Handle applying any Autofill option listings to the Autofill popup. |
| // This function should only get called when there is at least one |
| @@ -114,6 +118,10 @@ class AutofillExternalDelegate : public AutofillPopupDelegate { |
| // version. |
| void InsertDataListValues(std::vector<Suggestion>* suggestions); |
| + // Returns true if the suggestion entry is an Autofill warning message. |
| + // Warning message should display on top of suggestion list. |
| + bool IsAutofillWarningEntry(int frontend_id); |
|
Mathieu
2016/11/08 17:26:17
this can be in the anonymous namespace of the cc f
lshang
2016/11/08 23:39:06
Done.
|
| + |
| AutofillManager* manager_; // weak. |
| // Provides driver-level context to the shared code of the component. Must |