3 years, 7 months ago
(2017-05-03 12:54:55 UTC)
#4
Dry run: This issue passed the CQ dry run.
zino
Description was changed from ========== Revert "Revert of PaymentHandler: Implement PaymentInstruments.keys(). (patchset #3 id:40001 of ...
3 years, 7 months ago
(2017-05-03 14:22:23 UTC)
#5
Description was changed from
==========
Revert "Revert of PaymentHandler: Implement PaymentInstruments.keys(). (patchset
#3 id:40001 of https://codereview.chromium.org/2850203002/ )"
This reverts commit 9d3c221bdef03b02ef3ed0fe150433592d960f19.
BUG=
==========
to
==========
Reland "PaymentHandler: Implement PaymentInstruments.keys()."
Reason for revert:
This patch is causing some PaymentManager tests to fail.
Original issue's description:
> PaymentHandler: Implement PaymentInstruments.keys().
>
> The method to return keys of the stored payment instruments in insertion
order.
>
> Related Spec Link:
>
https://w3c.github.io/webpayments-payment-handler/#paymentinstruments-interface
>
> BUG=661608
> TEST=payment_manager_unittest.cc, payment-instruments.html
>
> Review-Url: https://codereview.chromium.org/2850203002
> Cr-Commit-Position: refs/heads/master@{#468747}
> Committed:
https://chromium.googlesource.com/chromium/src/+/09c61ecc5adf140aa7a59aef0eca...
BUG=661608
==========
3 years, 7 months ago
(2017-05-03 14:43:30 UTC)
#9
lgtm
https://codereview.chromium.org/2859803002/diff/20001/content/browser/payment...
File content/browser/payments/payment_app_database.cc (right):
https://codereview.chromium.org/2859803002/diff/20001/content/browser/payment...
content/browser/payments/payment_app_database.cc:497: bool success =
instrument_proto.SerializeToString(&serialized_instrument);
On 2017/05/03 14:30:33, zino wrote:
> In the original CL, this line was in DCHECK as follows:
> DCHECK(instrument_proto.SerializeToString(&serialized_instrument));
>
> So, the statement wasn't executed in some bots disabling DCHECK.
DCHECK is disabled in release mode (a.k.a., in production). Good catch!
+michaeln@ for serviceworker/* PTAL This is a relanding patch. I already got l-g-t-m from nhiroki@ ...
3 years, 7 months ago
(2017-05-03 15:40:42 UTC)
#11
+michaeln@ for serviceworker/*
PTAL
This is a relanding patch.
I already got l-g-t-m from nhiroki@ in original CL.
(https://codereview.chromium.org/2850203002)
But he is OOO now.
Could you review this patch?
Tom Sepez
RS LGTM stampity stamp.
3 years, 7 months ago
(2017-05-03 16:10:23 UTC)
#12
RS LGTM stampity stamp.
michaeln
r/s lgtm 2
3 years, 7 months ago
(2017-05-03 22:58:35 UTC)
#13
r/s lgtm 2
zino
The CQ bit was checked by jinho.bang@samsung.com
3 years, 7 months ago
(2017-05-03 23:28:06 UTC)
#14
https://codereview.chromium.org/2859803002/diff/20001/content/browser/payments/payment_app_database.cc File content/browser/payments/payment_app_database.cc (right): https://codereview.chromium.org/2859803002/diff/20001/content/browser/payments/payment_app_database.cc#newcode502 content/browser/payments/payment_app_database.cc:502: key_info_proto.set_insertion_order(base::Time::Now().ToInternalValue()); I'm unclear about the purpose of this usage ...
3 years, 7 months ago
(2017-05-17 21:50:01 UTC)
#20
Message was sent while issue was closed.
https://codereview.chromium.org/2859803002/diff/20001/content/browser/payment...
File content/browser/payments/payment_app_database.cc (right):
https://codereview.chromium.org/2859803002/diff/20001/content/browser/payment...
content/browser/payments/payment_app_database.cc:502:
key_info_proto.set_insertion_order(base::Time::Now().ToInternalValue());
I'm unclear about the purpose of this usage of base::Time::Now(), and I'm
concerned that it may cause errors. I suspect that it is intended to create a
monotonically increasing value, but on some Windows machines it is quite
possible for subsequent calls to base::Time::Now() to return the same value for
a time period up to about 16 ms in length. This may break assumptions and is
causing some tests to fail. Comments? See crbug.com/723225 for more context.
Issue 2859803002: Reland "PaymentHandler: Implement PaymentInstruments.keys()."
(Closed)
Created 3 years, 7 months ago by zino
Modified 3 years, 7 months ago
Reviewers: please use gerrit instead, nhiroki, Tom Sepez, michaeln, brucedawson
Base URL:
Comments: 4