Index: ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java |
diff --git a/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java b/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java |
index 8feaafb2d8d487880ed5908205a2ca33749adeab..772b4b550f0c8e0055f6dbdb79b5428a449b7e7d 100644 |
--- a/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java |
+++ b/ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java |
@@ -14,18 +14,22 @@ public class AutofillSuggestion implements DropdownItem { |
private final String mSublabel; |
private final int mIconId; |
private final int mSuggestionId; |
+ private final boolean mDeletable; |
/** |
* Constructs a Autofill suggestion container. |
* @param name The name of the Autofill suggestion. |
* @param label The describing label of the Autofill suggestion. |
* @param suggestionId The type of suggestion. |
+ * @param deletable Whether the item can be deleted by the user. |
*/ |
- public AutofillSuggestion(String name, String label, int iconId, int suggestionId) { |
+ public AutofillSuggestion( |
+ String name, String label, int iconId, int suggestionId, boolean deletable) { |
mLabel = name; |
mSublabel = label; |
mIconId = iconId; |
mSuggestionId = suggestionId; |
+ mDeletable = deletable; |
} |
@Override |
@@ -56,4 +60,8 @@ public class AutofillSuggestion implements DropdownItem { |
public int getSuggestionId() { |
return mSuggestionId; |
} |
+ |
+ public boolean isDeletable() { |
+ return mDeletable; |
+ } |
} |