[Payment Request][Android] Enhance SkipToGPay experiment flow.
This patch splits the SkipToGPay experiment into two phases that can be tested separately per request from early partners: 1) kSkipToGPayIfNoCard: enables skip-to-GPay if and only if user doesn't have a usable autofill instrument. 2) kSkipToGPay: enables skip-to-GPay regardless of availability of autofill instruments in the user's profile. Part (1) required an extra lookup from the PersonalDataManager before dispatching payment app creation. Manual profiling on a Nexus 5 showed that this added 0.3-19ms extra main thread processing, with average around 3ms for profiles that contain at least one credit card. This is a relatively small performance penalty. Bug: 877284 Change-Id: If465bb1fe0c1f79979cc3743af5474662bd6dd68 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1936107Reviewed-by:Sahel Sharify <sahel@chromium.org> Commit-Queue: Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#719402}
Showing
Please register or sign in to comment