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

Issue 2708933003: [Payments] Add timeout to the address_normalizer. (Closed)

Created:
3 years, 10 months ago by sebsg
Modified:
3 years, 10 months ago
CC:
chromium-reviews, rouslan+payments_chromium.org, rouslan+autofill_chromium.org, rogerm+autofillwatch_chromium.org, sebsg+autofillwatch_chromium.org, browser-components-watch_chromium.org, gogerald+paymentswatch_chromium.org, mathp+autofillwatch_chromium.org, agrieve+watch_chromium.org, vabr+watchlistautofill_chromium.org, estade+watch_chromium.org, sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payments] Add timeout to the address_normalizer. Adds a timeout parameter to the AddressNormalizer so that the requester will always receive a response before that time limit (be it a successful normalization or not). BUG=692643 Review-Url: https://codereview.chromium.org/2708933003 Cr-Commit-Position: refs/heads/master@{#452138} Committed: https://chromium.googlesource.com/chromium/src/+/5a2f0a362c5c1257d5893f973eb6e2e6696faa04

Patch Set 1 #

Total comments: 40

Patch Set 2 : Addressed comments #

Patch Set 3 : Updated BUILD file #

Total comments: 6

Patch Set 4 : Addressed comments #

Total comments: 4

Patch Set 5 : Nits #

Messages

Total messages: 40 (28 generated)
sebsg
Hi Rouslan, PTAL?
3 years, 10 months ago (2017-02-21 16:44:24 UTC) #5
please use gerrit instead
https://codereview.chromium.org/2708933003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2708933003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode129 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:129: if (mIsWaitingForBillingNormalization) return; Collapse 3 lines into 1: if ...
3 years, 10 months ago (2017-02-21 17:15:21 UTC) #10
Mathieu
https://codereview.chromium.org/2708933003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2708933003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode131 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:131: sendIntrumentDetails(); Instrument? https://codereview.chromium.org/2708933003/diff/40001/chrome/browser/autofill/android/personal_data_manager_android.h File chrome/browser/autofill/android/personal_data_manager_android.h (right): https://codereview.chromium.org/2708933003/diff/40001/chrome/browser/autofill/android/personal_data_manager_android.h#newcode296 chrome/browser/autofill/android/personal_data_manager_android.h:296: // ...
3 years, 10 months ago (2017-02-21 17:40:44 UTC) #12
please use gerrit instead
On 2017/02/21 17:40:44, Mathieu Perreault wrote: > > Why not use TestdataSource as-is? One caveat ...
3 years, 10 months ago (2017-02-21 17:42:28 UTC) #13
sebsg
Thanks guys, another look? https://codereview.chromium.org/2708933003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2708933003/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode129 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:129: if (mIsWaitingForBillingNormalization) return; On 2017/02/21 ...
3 years, 10 months ago (2017-02-21 18:31:00 UTC) #16
please use gerrit instead
https://codereview.chromium.org/2708933003/diff/40001/components/payments/address_normalizer.cc File components/payments/address_normalizer.cc (right): https://codereview.chromium.org/2708933003/diff/40001/components/payments/address_normalizer.cc#newcode57 components/payments/address_normalizer.cc:57: has_responded_ = true; On 2017/02/21 18:30:59, sebsg wrote: > ...
3 years, 10 months ago (2017-02-21 19:56:17 UTC) #23
sebsg
Thanks! Another look? https://codereview.chromium.org/2708933003/diff/40001/components/payments/address_normalizer.cc File components/payments/address_normalizer.cc (right): https://codereview.chromium.org/2708933003/diff/40001/components/payments/address_normalizer.cc#newcode57 components/payments/address_normalizer.cc:57: has_responded_ = true; On 2017/02/21 19:56:16, ...
3 years, 10 months ago (2017-02-21 22:17:07 UTC) #29
please use gerrit instead
lgtm
3 years, 10 months ago (2017-02-21 22:18:02 UTC) #30
Mathieu
lgtm % nits https://codereview.chromium.org/2708933003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2708933003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode104 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:104: PersonalDataManager.getInstance().getNormalizationTimeoutSeconds(), this); I don't understand well ...
3 years, 10 months ago (2017-02-22 02:01:31 UTC) #33
sebsg
Thanks! Sending to CQ https://codereview.chromium.org/2708933003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java (right): https://codereview.chromium.org/2708933003/diff/120001/chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java#newcode104 chrome/android/java/src/org/chromium/chrome/browser/payments/AutofillPaymentInstrument.java:104: PersonalDataManager.getInstance().getNormalizationTimeoutSeconds(), this); On 2017/02/22 02:01:31, ...
3 years, 10 months ago (2017-02-22 17:04:18 UTC) #34
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/2708933003/130001
3 years, 10 months ago (2017-02-22 17:04:55 UTC) #37
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 18:25:31 UTC) #40
Message was sent while issue was closed.
Committed patchset #5 (id:130001) as
https://chromium.googlesource.com/chromium/src/+/5a2f0a362c5c1257d5893f973eb6...

Powered by Google App Engine
This is Rietveld 408576698