Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(227)

Unified Diff: ui/android/java/src/org/chromium/ui/autofill/AutofillSuggestion.java

Issue 1134793004: Autofill item deletion on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..7db61a3d4d20dbc7a8f61650003c267dbe83d803 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 boolean mDeletable;
Ted C 2015/05/14 21:56:40 final
Evan Stade 2015/05/14 23:12:06 Done.
/**
* 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;
+ }
}

Powered by Google App Engine
This is Rietveld 408576698