[Web Payment] Static methods for creating RespondWithCallback.
Before this patch, the exact constructor for RespondWithCallback that payment_app_provider_impl.cc used depended only on the type of the callback object, which made the code harder to understand. This patch replaces the two constructors with two static methods: CreateForInvoke() and CreateForEvent(). After this patch, it is clear which code path is taken when reading the code. Bug: 1005076 Change-Id: Idc762c79077082088b81d8a564b5acc11e47ae12 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2089616 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Danyao Wang <danyao@chromium.org> Cr-Commit-Position: refs/heads/master@{#748755}
Showing
Please register or sign in to comment