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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/payments/ui/SectionInformation.java

Issue 2529443002: Show custom error message in payments UI. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2718db49cc9a956ede81538b325cbab3ef3828d1..4eaf2f65d8ecc8ef90588686ace9486dc503ba2c 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
@@ -30,6 +30,7 @@ public class SectionInformation {
@PaymentRequestUI.DataType private final int mDataType;
private ArrayList<PaymentOption> mItems;
private int mSelectedItem;
+ public String mErrorMessage;
/**
* Builds an empty section without selection.
@@ -173,4 +174,14 @@ public class SectionInformation {
}
return 0;
}
+
+ /** @param msg The optional error message to display when the selection is invalid. */
+ public void setErrorMessage(String msg) {
+ mErrorMessage = msg;
+ }
+
+ /** @return The optional error message to display when the selection is invalid. */
+ public String getErrorMessage() {
+ return mErrorMessage;
+ }
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/payments/ui/PaymentRequestUI.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698