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

Issue 2629883004: [Payment Request] Update the CurrencyStringFormatter to call the native impl. (Closed)

Created:
3 years, 11 months ago by Mathieu
Modified:
3 years, 11 months ago
CC:
chromium-reviews, rouslan+payments_chromium.org, sebsg+paymentswatch_chromium.org, gogerald+paymentswatch_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Payment Request] Update the CurrencyStringFormatter to call the native impl. Uses components/payments/currency_formatter.h by way of a JNI bridge. Had to get rid of the junit tests because the implementation now require the native libraries to be loaded. BUG=679797 TEST=CurrencyStringFormatterTest, manual Review-Url: https://codereview.chromium.org/2629883004 Cr-Commit-Position: refs/heads/master@{#443797} Committed: https://chromium.googlesource.com/chromium/src/+/94af7a6d022fc5368503a8c47480d012617376f3

Patch Set 1 #

Total comments: 12

Patch Set 2 : addressed comments #

Total comments: 2

Patch Set 3 : CurrencyStringFormatter -> CurrencyFormatter #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -538 lines) Patch
A chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyFormatter.java View 1 2 1 chunk +79 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java View 1 2 1 chunk +0 lines, -188 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestImpl.java View 1 2 7 chunks +28 lines, -17 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
A chrome/android/javatests/src/org/chromium/chrome/browser/payments/CurrencyFormatterTest.java View 1 2 1 chunk +113 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterTest.java View 1 2 1 chunk +0 lines, -109 lines 0 comments Download
D chrome/android/junit/src/org/chromium/chrome/browser/payments/CurrencyStringFormatterUnitTest.java View 1 chunk +0 lines, -160 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M components/payments/android/BUILD.gn View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
A components/payments/android/currency_formatter_android.h View 1 1 chunk +51 lines, -0 lines 0 comments Download
A components/payments/android/currency_formatter_android.cc View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
M components/payments/currency_formatter.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M components/payments/currency_formatter.cc View 1 3 chunks +17 lines, -5 lines 0 comments Download
M components/payments/currency_formatter_unittest.cc View 1 3 chunks +102 lines, -56 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 18 (11 generated)
Mathieu
Hi Rouslan, please take a look!
3 years, 11 months ago (2017-01-13 21:04:15 UTC) #3
please use gerrit instead
lgtm % comments https://codereview.chromium.org/2629883004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java File chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java (right): https://codereview.chromium.org/2629883004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java#newcode42 chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java:42: private final Pattern mAmountValuePattern; No longer ...
3 years, 11 months ago (2017-01-13 21:16:25 UTC) #4
Mathieu
Thanks! +Dan for 1-line JNI registration. https://codereview.chromium.org/2629883004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java File chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java (right): https://codereview.chromium.org/2629883004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java#newcode42 chrome/android/java/src/org/chromium/chrome/browser/payments/CurrencyStringFormatter.java:42: private final Pattern ...
3 years, 11 months ago (2017-01-13 22:27:01 UTC) #6
gone
lgtm for the single line https://codereview.chromium.org/2629883004/diff/20001/chrome/browser/android/chrome_jni_registrar.cc File chrome/browser/android/chrome_jni_registrar.cc (right): https://codereview.chromium.org/2629883004/diff/20001/chrome/browser/android/chrome_jni_registrar.cc#newcode275 chrome/browser/android/chrome_jni_registrar.cc:275: {"CurrencyStringFormatter", payments::CurrencyFormatterAndroid::Register}, Make the ...
3 years, 11 months ago (2017-01-14 00:55:41 UTC) #11
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/2629883004/40001
3 years, 11 months ago (2017-01-14 09:57:23 UTC) #14
Mathieu
https://codereview.chromium.org/2629883004/diff/20001/chrome/browser/android/chrome_jni_registrar.cc File chrome/browser/android/chrome_jni_registrar.cc (right): https://codereview.chromium.org/2629883004/diff/20001/chrome/browser/android/chrome_jni_registrar.cc#newcode275 chrome/browser/android/chrome_jni_registrar.cc:275: {"CurrencyStringFormatter", payments::CurrencyFormatterAndroid::Register}, On 2017/01/14 00:55:41, dfalcantara (load balance plz) ...
3 years, 11 months ago (2017-01-14 09:57:23 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-14 11:11:20 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/94af7a6d022fc5368503a8c47480...

Powered by Google App Engine
This is Rietveld 408576698