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

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed)

Created:
4 years, 9 months ago by please use gerrit instead
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, groby-ooo-7-16, Justin Donnelly, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, Ken Rockot(use gerrit already), viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, zkoch1
Base URL:
https://chromium.googlesource.com/chromium/src.git@mojo
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scaffolding for Android implementation of PaymentRequest. This patch places ServiceRegistryAndroid in content/public/, so Chrome can register Android-specific services for Mojo. ServiceRegistryAndroid is a pure virtual interface, implemented by ServiceRegistryAndroidImpl in content/browser/android/. The first user of the Android-specific features of Mojo in Chrome is the PaymentRequest service. This patch adds a skeleton implementation of this service. BUG=587995 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/2f6c373bd44bfbaad1468d86d13293b4a8640c58 Cr-Commit-Position: refs/heads/master@{#385647}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Total comments: 3

Patch Set 6 : Android-specific methods in common service registry. #

Patch Set 7 : Android-only java target #

Patch Set 8 : Rename GetObj into GetJavaObj to be more explicit #

Patch Set 9 : Only Android should have scoped_ptr<ServiceRegistryAndroid> member #

Patch Set 10 : Register PaymentRequest with render process #

Total comments: 2

Patch Set 11 : lazy init android object #

Patch Set 12 : cleanup #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Patch Set 15 : ServiceRegistryAndroid::From(ServiceRegistry) #

Patch Set 16 : Cleanup #

Total comments: 2

Patch Set 17 : Simplified proposal #

Patch Set 18 : Agreed upon implementation. #

Patch Set 19 : Build android-specific files only on android. #

Patch Set 20 : Fix shell_mojo_test_utils_android.cc #

Total comments: 6

Patch Set 21 : ncarter@'s comments #

Total comments: 9

Patch Set 22 : tedchoc@'s comments #

Total comments: 8

Patch Set 23 : thestig@ & esprehn@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -198 lines) Patch
M chrome/android/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeServiceRegistrar.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java View 1 2 3 4 5 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestFactory.java View 1 2 3 4 5 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/android/mojo/chrome_service_registrar_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/android/mojo/chrome_service_registrar_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -0 lines 0 comments Download
M content/browser/android/browser_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +2 lines, -2 lines 0 comments Download
A content/browser/android/service_registry_android_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +53 lines, -0 lines 0 comments Download
A + content/browser/android/service_registry_android_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 5 chunks +30 lines, -21 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/mojo/mojo_application_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
M content/browser/mojo/mojo_application_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/mojo/service_registrar_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -1 line 0 comments Download
D content/browser/mojo/service_registry_android.h View 1 2 3 4 5 1 chunk +0 lines, -56 lines 0 comments Download
D content/browser/mojo/service_registry_android.cc View 1 2 3 4 5 1 chunk +0 lines, -102 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java View 1 1 chunk +11 lines, -2 lines 0 comments Download
A content/public/browser/android/service_registry_android.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +51 lines, -0 lines 0 comments Download
M content/shell/browser/shell_mojo_test_utils_android.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +9 lines, -1 line 0 comments Download
M third_party/WebKit/public/blink.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +32 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 54 (23 generated)
please use gerrit instead
tedchoc@, ptal patch 5. Ignore the trybot failures. I automatically typed in "git cl try", ...
4 years, 9 months ago (2016-03-25 19:46:19 UTC) #2
Ted C
https://codereview.chromium.org/1831173002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestActivity.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestActivity.java (right): https://codereview.chromium.org/1831173002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestActivity.java#newcode19 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestActivity.java:19: public class PaymentRequestActivity implements PaymentRequest { Activity? Or Dialog? ...
4 years, 8 months ago (2016-03-28 22:46:01 UTC) #4
please use gerrit instead
+nick@ as a //src/content/ owner. nick@: what do you think about tedchoc@'s suggestion to expose ...
4 years, 8 months ago (2016-03-29 22:49:09 UTC) #6
ncarter (slow)
+rockot, could you provide some advice on how best to to expose ServiceRegistryAndroid to the ...
4 years, 8 months ago (2016-03-29 23:07:19 UTC) #8
ncarter (slow)
rocket looks ooo, so adding jam instead
4 years, 8 months ago (2016-03-29 23:08:03 UTC) #10
please use gerrit instead
jam@: what do you think about tedchoc@'s suggestion to expose Java-specific methods in //src/content/public/common/service_registry.h? This ...
4 years, 8 months ago (2016-03-30 13:43:34 UTC) #11
jam
On 2016/03/30 13:43:34, Rouslan wrote: > jam@: what do you think about tedchoc@'s suggestion to ...
4 years, 8 months ago (2016-03-30 15:58:59 UTC) #13
please use gerrit instead
jam@, sammc@: ptal patch 9. I've exposed GetJavaObj() inside of ServiceRegistry. Chrome sends this object ...
4 years, 8 months ago (2016-03-30 22:04:49 UTC) #22
Sam McNally
It feels a bit weird to have Java-specific methods in something that's shared with non-browser ...
4 years, 8 months ago (2016-03-31 23:40:26 UTC) #23
please use gerrit instead
sammc@, ptal patch 12. On 2016/03/31 23:40:26, Sam McNally wrote: > It feels a bit ...
4 years, 8 months ago (2016-04-01 01:23:27 UTC) #24
ncarter (slow)
Overall, I like the amount of simplification here. Help me understand one thing: Because this ...
4 years, 8 months ago (2016-04-04 21:32:19 UTC) #25
please use gerrit instead
On 2016/04/04 21:32:19, ncarter wrote: > Because this code is in content/common, > ServiceRegistryImpl::GetJavaObj will ...
4 years, 8 months ago (2016-04-04 21:57:07 UTC) #26
ncarter (slow)
On 2016/04/04 21:57:07, Rouslan wrote: > On 2016/04/04 21:32:19, ncarter wrote: > > Because this ...
4 years, 8 months ago (2016-04-04 23:28:09 UTC) #27
please use gerrit instead
On 2016/04/04 23:28:09, ncarter wrote: > What if we did something like this -- > ...
4 years, 8 months ago (2016-04-05 00:53:04 UTC) #29
ncarter (slow)
Using SupportsUserData is a solution that works as well. I am happy with this approach. ...
4 years, 8 months ago (2016-04-05 18:22:40 UTC) #30
please use gerrit instead
ncarter@: ptal patch 20, which contains the implementation upon which we've settled over VC.
4 years, 8 months ago (2016-04-06 03:04:57 UTC) #32
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831173002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831173002/370001
4 years, 8 months ago (2016-04-06 17:53:59 UTC) #34
ncarter (slow)
lgtm with nits Thanks for all the iterations you did to get this implemented so ...
4 years, 8 months ago (2016-04-06 18:17:37 UTC) #35
please use gerrit instead
tedchoc@, ptal in patch 21: chrome/browser/android/* chrome/android/* https://codereview.chromium.org/1831173002/diff/370001/content/browser/android/service_registry_android_impl.cc File content/browser/android/service_registry_android_impl.cc (right): https://codereview.chromium.org/1831173002/diff/370001/content/browser/android/service_registry_android_impl.cc#newcode40 content/browser/android/service_registry_android_impl.cc:40: // statc ...
4 years, 8 months ago (2016-04-06 18:30:13 UTC) #36
please use gerrit instead
https://codereview.chromium.org/1831173002/diff/390001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java File content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java (right): https://codereview.chromium.org/1831173002/diff/390001/content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java#newcode5 content/public/android/java/src/org/chromium/content/browser/ServiceRegistry.java:5: package org.chromium.content.browser; tedchoc@: Should this package change from org.chromium.content.browser ...
4 years, 8 months ago (2016-04-06 18:34:44 UTC) #37
Ted C
lgtm w/ a nits https://codereview.chromium.org/1831173002/diff/390001/chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeServiceRegistrar.java File chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeServiceRegistrar.java (right): https://codereview.chromium.org/1831173002/diff/390001/chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeServiceRegistrar.java#newcode14 chrome/android/java/src/org/chromium/chrome/browser/mojo/ChromeServiceRegistrar.java:14: class ChromeServiceRegistrar { quick javadoc ...
4 years, 8 months ago (2016-04-06 19:46:57 UTC) #38
please use gerrit instead
esprehn@ ptal third_party/WebKit/public/blink.gyp -- generating java bindings for blink's mojo. thestig@ ptal chrome/chrome.gyp -- making ...
4 years, 8 months ago (2016-04-06 20:07:55 UTC) #40
please use gerrit instead
On 2016/04/06 20:07:55, Rouslan wrote: > esprehn@ ptal third_party/WebKit/public/blink.gyp -- generating java bindings > for ...
4 years, 8 months ago (2016-04-06 20:31:55 UTC) #41
Lei Zhang
https://codereview.chromium.org/1831173002/diff/410001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/1831173002/diff/410001/chrome/android/BUILD.gn#newcode130 chrome/android/BUILD.gn:130: "//mojo/public/java:bindings", Should chrome/chrome.gyp have these deps as well to ...
4 years, 8 months ago (2016-04-06 20:42:21 UTC) #42
esprehn
lgtm https://codereview.chromium.org/1831173002/diff/410001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java File chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java (right): https://codereview.chromium.org/1831173002/diff/410001/chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java#newcode45 chrome/android/java/src/org/chromium/chrome/browser/payments/PaymentRequestDialog.java:45: public void abort() {} Do these need TODO ...
4 years, 8 months ago (2016-04-06 21:10:35 UTC) #43
please use gerrit instead
thestig@ ptal patch 23. https://codereview.chromium.org/1831173002/diff/410001/chrome/android/BUILD.gn File chrome/android/BUILD.gn (right): https://codereview.chromium.org/1831173002/diff/410001/chrome/android/BUILD.gn#newcode130 chrome/android/BUILD.gn:130: "//mojo/public/java:bindings", On 2016/04/06 20:42:20, Lei ...
4 years, 8 months ago (2016-04-06 23:07:24 UTC) #44
Lei Zhang
chrome/ build files LGTM
4 years, 8 months ago (2016-04-06 23:15:52 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831173002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831173002/430001
4 years, 8 months ago (2016-04-06 23:27:16 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1831173002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1831173002/430001
4 years, 8 months ago (2016-04-07 03:41:36 UTC) #51
commit-bot: I haz the power
Committed patchset #23 (id:430001)
4 years, 8 months ago (2016-04-07 03:52:20 UTC) #52
commit-bot: I haz the power
4 years, 8 months ago (2016-04-07 03:54:41 UTC) #54
Message was sent while issue was closed.
Patchset 23 (id:??) landed as
https://crrev.com/2f6c373bd44bfbaad1468d86d13293b4a8640c58
Cr-Commit-Position: refs/heads/master@{#385647}

Powered by Google App Engine
This is Rietveld 408576698