Dry run: Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/92533)
3 years, 11 months ago
(2016-12-29 23:17:14 UTC)
#4
Description was changed from ========== Detect locally installed native Android payment apps. In this patch: ...
3 years, 11 months ago
(2017-01-03 15:45:00 UTC)
#9
Description was changed from
==========
Detect locally installed native Android payment apps.
In this patch:
1) Query locally installed native Android payment apps.
2) Show the name and icon of these apps in UI.
3) Invoke the apps with matching payment method data.
4) Return the results back to the merchant website.
Intent to implement:
https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/fsslHD1Gf88...
The feature is disabled by default. It can be enabled via a flag:
chrome://flags#android-payment-apps
BUG=620173
==========
to
==========
Detect locally installed native Android payment apps.
In this patch:
1) Query locally installed native Android payment apps.
2) Show the name and icon of these apps in UI.
3) Invoke the apps with matching payment method data.
4) Return the results back to the merchant website.
Intent to implement:
https://groups.google.com/a/chromium.org/forum/#!msg/chromium-dev/fsslHD1Gf88...
The feature is disabled by default. It can be enabled via a flag:
chrome://flags/#android-payment-apps
To test the new functionality:
1) Install BobPay:
https://drive.google.com/open?id=0B9_TYWUgXNVFLXpRRkthd1lRbjg
2) Enable chrome://flags/#android-payment-apps.
3) Open https://rsolomakhin.github.io/pr/bob/.
4) Click [Buy] button.
BUG=620173
==========
3 years, 11 months ago
(2017-01-04 17:27:29 UTC)
#25
Patchset #3 (id:80001) has been deleted
please use gerrit instead
Dan, ptal patch 3. https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java File chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java (right): https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java#newcode1 chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:1: // Copyright 2016 The Chromium ...
3 years, 11 months ago
(2017-01-04 17:27:53 UTC)
#26
Dan, ptal patch 3.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java
(right):
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:1:
// Copyright 2016 The Chromium Authors. All rights reserved.
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> Happy new year!
You too!
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:28:
/** A locally installed payment app. */
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> nit: Maybe "interfaces with a locally installed payment app"? It's a little
> weird to say that this class is an app.
Done.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:31:
private static final String METHOD_NAME_EXTRA = "methodName";
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> nit: Consider prefixing these with EXTRA_ instead of suffixing them. It's a
> more common pattern in the codebase and groups them together more clearly.
Done.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:55:
public void addMethodName(String methodName) {
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> Javadocs for public methods. Findbugs might complain otherwise.
Done.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentApp.java:96:
return Collections.unmodifiableSet(mMethodNames);
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> Is this function's return value always going to match getAppMethodNames?
Should
> one call the other?
Done.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java
(right):
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java:27:
private static final String IS_READY_TO_PAY_INTENT_ACTION =
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> Prefix ACTION instead of suffixing; that's how Intent.ACTION_* is
standardized.
Done.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java:34:
WindowAndroid window =
ContentViewCore.fromWebContents(webContents).getWindowAndroid();
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> 1) getWindowAndroid can return null, which doesn't seem to be accounted for.
Checking getWindowAndroid() for null now. Thank you.
Can ContentViewCore.fromWebContents(webContents) return null?
> 2) It's much safer to cache the WebContents instead of the WindowAndroid to
deal
> with tab reparenting (e.g.), which results in getWindowAndroid() being null.
Caching WebContents instead.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java
(right):
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentAppFactory.java:115:
context, webContents, methods, new PaymentAppCreatedCallback() {
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> Indentation would be less wonky if you created the PaymentAppCreatedCallback
> outside of the function call.
Done.
Not super happy about having more than one callback reference of the same type
in the function, but can't think of a better way to do it.
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/str...
File chrome/android/java/strings/android_chrome_strings.grd (right):
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/str...
chrome/android/java/strings/android_chrome_strings.grd:2763: Unable to launch
payment app
On 2017/01/03 19:20:03, dfalcantara (check queue) wrote:
> Should specify in the description why this doesn't have a period, or add one.
I
> don't think snackbars or toast messages are discouraged from having periods,
> despite other usages of the WindowAndroid method.
Done.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 11 months ago
(2017-01-04 18:33:57 UTC)
#27
3 years, 11 months ago
(2017-01-04 19:40:57 UTC)
#29
lgtm % adding that null check
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java
(right):
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java:34:
WindowAndroid window =
ContentViewCore.fromWebContents(webContents).getWindowAndroid();
On 2017/01/04 17:27:53, rouslan wrote:
> Can ContentViewCore.fromWebContents(webContents) return null?
Javadoc suggests so, yeah. Should probably null check that where you moved it
to.
please use gerrit instead
The CQ bit was checked by rouslan@chromium.org to run a CQ dry run
3 years, 11 months ago
(2017-01-04 19:58:53 UTC)
#30
3 years, 11 months ago
(2017-01-04 20:02:51 UTC)
#33
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
File
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java
(right):
https://codereview.chromium.org/2604193002/diff/60001/chrome/android/java/src...
chrome/android/java/src/org/chromium/chrome/browser/payments/AndroidPaymentAppFactory.java:34:
WindowAndroid window =
ContentViewCore.fromWebContents(webContents).getWindowAndroid();
On 2017/01/04 19:40:57, dfalcantara (check queue) wrote:
> On 2017/01/04 17:27:53, rouslan wrote:
> > Can ContentViewCore.fromWebContents(webContents) return null?
>
> Javadoc suggests so, yeah. Should probably null check that where you moved it
> to.
Done.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
3 years, 11 months ago
(2017-01-04 20:57:43 UTC)
#34
Issue 2604193002: Detect locally installed native Android payment apps.
(Closed)
Created 3 years, 11 months ago by please use gerrit instead
Modified 3 years, 11 months ago
Reviewers: gone, rkaplow
Base URL:
Comments: 22