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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp

Issue 2958333002: [Payments] Implement web payment app manifest (Closed)
Patch Set: Created 3 years, 6 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/PaymentInstruments.cpp
diff --git a/third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp b/third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp
index 2da969b6564dcf4671b54b3554536e00ca35e578..708178950bcba4776ff0e910e39bb444c4eba07c 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp
+++ b/third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp
@@ -46,6 +46,13 @@ bool rejectError(ScriptPromiseResolver* resolver,
resolver->Reject(DOMException::Create(
kNotFoundError, "Fetch or decode instrument icon failed"));
return true;
+ case payments::mojom::blink::PaymentHandlerStatus::
+ FETCH_PAYMENT_APP_INFO_FAILED:
+ resolver->Reject(DOMException::Create(kNotFoundError,
+ "Fetch payment app's info "
+ "(manifest or the field in the "
+ "manifest) failed"));
+ return true;
}
NOTREACHED();
return false;

Powered by Google App Engine
This is Rietveld 408576698