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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentsValidators.h

Issue 2355463002: [PaymentReqeust] Add error message in PaymentDetails. (in blink side) (Closed)
Patch Set: rebase from origin Created 4 years, 3 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: third_party/WebKit/Source/modules/payments/PaymentsValidators.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentsValidators.h b/third_party/WebKit/Source/modules/payments/PaymentsValidators.h
index 6ee2499f214f664705657ea20ee08977034967a2..e2bbedc8d4aff86026b69357396ee63c7b1d0249 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentsValidators.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentsValidators.h
@@ -38,6 +38,9 @@ public:
// - Has a valid script code, if any.
// A script code should be present only if language code is present.
static bool isValidShippingAddress(const mojom::blink::PaymentAddressPtr&, String* optionalErrorMessage);
+
+ // Returns false if |error| is too long (greater than 2048).
+ static bool isValidErrorMsgFormat(const String& code, String* optionalErrorMessage);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698