| Index: components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
|
| diff --git a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
|
| index 885fd7cf1868f70069beba29057c15f76040ef83..c364979726133885b99a35cebd411b6cfc28fb29 100644
|
| --- a/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
|
| +++ b/components/autofill/android/java/src/org/chromium/components/autofill/AutofillSuggestion.java
|
| @@ -23,23 +23,28 @@ public class AutofillSuggestion extends DropdownItemBase {
|
| private final int mSuggestionId;
|
| private final boolean mDeletable;
|
| private final boolean mIsMultilineLabel;
|
| + private final boolean mIsBoldLabel;
|
|
|
| /**
|
| * Constructs a Autofill suggestion container.
|
| * @param label The main label of the Autofill suggestion.
|
| * @param sublabel The describing sublabel of the Autofill suggestion.
|
| + * @param iconId The resource ID for the icon associated with the suggestion, or
|
| + * {@code DropdownItem.NO_ICON} for no icon.
|
| * @param suggestionId The type of suggestion.
|
| * @param deletable Whether the item can be deleted by the user.
|
| - * @param multilineLabel Whether the label is displayed over multiple lines.
|
| + * @param isMultilineLabel Whether the label is displayed over multiple lines.
|
| + * @param isBoldLabel Whether the label is displayed in {@code Typeface.BOLD}.
|
| */
|
| public AutofillSuggestion(String label, String sublabel, int iconId, int suggestionId,
|
| - boolean deletable, boolean multilineLabel) {
|
| + boolean deletable, boolean isMultilineLabel, boolean isBoldLabel) {
|
| mLabel = label;
|
| mSublabel = sublabel;
|
| mIconId = iconId;
|
| mSuggestionId = suggestionId;
|
| mDeletable = deletable;
|
| - mIsMultilineLabel = multilineLabel;
|
| + mIsMultilineLabel = isMultilineLabel;
|
| + mIsBoldLabel = isBoldLabel;
|
| }
|
|
|
| @Override
|
| @@ -63,6 +68,11 @@ public class AutofillSuggestion extends DropdownItemBase {
|
| }
|
|
|
| @Override
|
| + public boolean isBoldLabel() {
|
| + return mIsBoldLabel;
|
| + }
|
| +
|
| + @Override
|
| public int getLabelFontColorResId() {
|
| if (mSuggestionId == ITEM_ID_HTTP_NOT_SECURE_WARNING_MESSAGE) {
|
| return R.color.http_bad_warning_message_text;
|
|
|