| Index: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java
|
| index df8e9d51e8892945a7d3be933d8d91e4d61a6d6c..e4aa1152d692564b90fda1031f5ae1ecd8ed330d 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java
|
| @@ -90,7 +90,7 @@ public class SectionInformation {
|
| }
|
|
|
| /**
|
| - * Sets the currently selected item.
|
| + * Sets the currently selected item by index.
|
| *
|
| * @param index The index of the currently selected item, or NO_SELECTION if a selection has not
|
| * yet been made.
|
| @@ -100,6 +100,22 @@ public class SectionInformation {
|
| }
|
|
|
| /**
|
| + * Sets the currently selected item.
|
| + *
|
| + * @param selectedItem The currently selected item, or null of a selection has not yet been
|
| + * made.
|
| + */
|
| + public void setSelectedItem(PaymentOption selectedItem) {
|
| + if (mItems == null) return;
|
| + for (int i = 0; i < mItems.size(); i++) {
|
| + if (mItems.get(i) == selectedItem) {
|
| + mSelectedItem = i;
|
| + return;
|
| + }
|
| + }
|
| + }
|
| +
|
| + /**
|
| * Returns the index of the selected item.
|
| *
|
| * @return The index of the currently selected item, or NO_SELECTION if a selection has not yet
|
|
|