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

Unified Diff: chrome/test/data/payments/metrics.js

Issue 2810323002: [Payments] Add metric for when Pr UI is skipped. (Closed)
Patch Set: Created 3 years, 8 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: chrome/test/data/payments/metrics.js
diff --git a/chrome/test/data/payments/metrics.js b/chrome/test/data/payments/metrics.js
index f9d0db082bd3933450dff3556184abec3ff93e90..d588ad4a8ae56c5e8f869fe3bad1c4a5c458dd23 100644
--- a/chrome/test/data/payments/metrics.js
+++ b/chrome/test/data/payments/metrics.js
@@ -53,21 +53,15 @@ function ccBuy() { // eslint-disable-line no-unused-vars
}
/**
- * Launches the PaymentRequest UI which accepts only Android Pay.
+ * Launches the PaymentRequest UI which accepts only Android Pay and does not
please use gerrit instead 2017/04/13 13:49:47 It's better to add a new function than altering th
sebsg 2017/04/13 19:45:56 Done.
+ * require any other information.
*/
function androidPayBuy() { // eslint-disable-line no-unused-vars
try {
request = new PaymentRequest(
[{supportedMethods: ['https://android.com/pay']}], {
total: {label: 'Total', amount: {currency: 'USD', value: '5.00'}},
- shippingOptions: [{
- id: 'freeShippingOption',
- label: 'Free global shipping',
- amount: {currency: 'USD', value: '0'},
- selected: true
- }]
- },
- {requestShipping: true});
+ });
request.show()
.then(function(resp) {
return resp.complete('success');

Powered by Google App Engine
This is Rietveld 408576698