Updates:
Cc:
twell...@chromium.org dtra...@chromium.org mdj...@chromium.orgComment #2 on issue 1066269 by
hnaka...@chromium.org: Create separate build target for chrome/browser/payments/android
https://bugs.chromium.org/p/chromium/issues/detail?id=1066269#c2Though this bug and the prototype refer to native code, the level of decoupling that .payment already has in Java means there is a great opportunity to modularize both sides here.
I did a quick audit based on java imports from chrome.browser.payments and found these to be the dependencies:
Already being modularized:
- ChromeActivity
- .tabmodel
- .tab
- .widget.bottomsheet
Dependencies left to modularize:
- .autofill
- .compositor.layouts (PaymentRequestImpl.java)
- .ssl. ChromeSecurityStateModelDelegate (PaymentRequestImpl.java)
- ChromeVersionInfo
- WebContentsFactory (PaymentHandlerCoordinator.java)
- .offlinepages.OfflinePageUtils (PaymentHandlerToolbarMediator.java)
- .page_info.PageInfoController (PaymentHandlerToolbarMediator.java)
- .omnibox.ChromeAutocompleteSchemeClassifier (PaymentRequestHeader.java)
- .signin.IdentityServicesProvider (PaymentRequestUI.java)
That's a relatively short list, blocked mostly by .autofill (like danyao@ mentioned about native) on the Java side - besides .tabmodel and .bottomsheet that are being worked on.