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

Issue 2859803002: Reland "PaymentHandler: Implement PaymentInstruments.keys()." (Closed)

Created:
3 years, 7 months ago by zino
Modified:
3 years, 7 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, kinuko+watch, jsbell+serviceworker_chromium.org, tzik, jam, abarth-chromium, darin-cc_chromium.org, blink-reviews, gogerald+paymentswatch_chromium.org, blink-worker-reviews_chromium.org, nhiroki, rouslan+payments_chromium.org, haraken, shimazu+serviceworker_chromium.org, serviceworker-reviews, Aaron Boodman, kinuko+serviceworker, mahmadi+paymentswatch_chromium.org, horo+watch_chromium.org, darin (slow to review), sebsg+paymentswatch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Reland "PaymentHandler: Implement PaymentInstruments.keys()." Reason for revert: This patch is causing some PaymentManager tests to fail. (https://crrev.com/2858773002) 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/+/09c61ecc5adf140aa7a59aef0ecacc510e0be1d8 BUG=661608 Review-Url: https://codereview.chromium.org/2859803002 Cr-Commit-Position: refs/heads/master@{#469238} Committed: https://chromium.googlesource.com/chromium/src/+/f7742a29c7b6832dbdf2336280d9fdf9fed6da4a

Patch Set 1 #

Patch Set 2 : Reland "PaymentHandler: Implement PaymentInstruments.keys()." #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+385 lines, -32 lines) Patch
M components/payments/mojom/payment_app.mojom View 1 chunk +6 lines, -4 lines 0 comments Download
M content/browser/payments/payment_app.proto View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_database.h View 3 chunks +14 lines, -0 lines 0 comments Download
M content/browser/payments/payment_app_database.cc View 1 7 chunks +89 lines, -6 lines 4 comments Download
M content/browser/payments/payment_manager.h View 1 chunk +7 lines, -5 lines 0 comments Download
M content/browser/payments/payment_manager.cc View 1 chunk +18 lines, -10 lines 0 comments Download
M content/browser/payments/payment_manager_unittest.cc View 3 chunks +47 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_context_wrapper.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_database.h View 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_database.cc View 1 chunk +44 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.h View 2 chunks +12 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_storage.cc View 2 chunks +48 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/http/tests/payments/payment-instruments.html View 1 chunk +42 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentInstruments.h View 2 chunks +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentInstruments.cpp View 2 chunks +24 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentInstruments.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (12 generated)
zino
PTAL. 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#newcode497 content/browser/payments/payment_app_database.cc:497: bool success = instrument_proto.SerializeToString(&serialized_instrument); In the original CL, ...
3 years, 7 months ago (2017-05-03 14:30:33 UTC) #8
please use gerrit instead
lgtm 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#newcode497 content/browser/payments/payment_app_database.cc:497: bool success = instrument_proto.SerializeToString(&serialized_instrument); On 2017/05/03 14:30:33, zino ...
3 years, 7 months ago (2017-05-03 14:43:30 UTC) #9
zino
+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
Tom Sepez
RS LGTM stampity stamp.
3 years, 7 months ago (2017-05-03 16:10:23 UTC) #12
michaeln
r/s lgtm 2
3 years, 7 months ago (2017-05-03 22:58:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2859803002/20001
3 years, 7 months ago (2017-05-03 23:28:41 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/f7742a29c7b6832dbdf2336280d9fdf9fed6da4a
3 years, 7 months ago (2017-05-04 01:40:03 UTC) #18
brucedawson
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.

Powered by Google App Engine
This is Rietveld 408576698