| Code-Review | +1 |
const Suggestion suggestion{SuggestionType::kManageAddress};is this change necessary?
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Commit-Queue | +2 |
const Suggestion suggestion{SuggestionType::kManageAddress};Jan Keitelis this change necessary?
Yes, because `AED` CHECKs that `Suggestion::IsAcceptable()` is true.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Incorporate IsAcceptableSuggestionType into Suggestion::IsAcceptable
This CL extends autofill::Suggestion::IsAcceptable() to check whether the
suggestion type is acceptable (e.g. not a separator, title, or message)
in addition to checking acceptability state.
The standalone helper IsAcceptableSuggestionType() is removed and its
call sites updated to call Suggestion::IsAcceptable() instead.
While still not perfect (we should consider adding setters and getters
to Suggestion as it becomes more complex), this makes acceptability
decisions more centralized and, hopefully, less confusing.
TAG=agy
CONV=8d0cc70f-64a0-4a23-a918-b82a2404358c
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |