[Payment Request] Disconnect only from connected service.
Before this patch, if binding failed or the Android payment app disconnected from Chrome midway through the payment process, Chrome would unbind on its own side, which would result in an IllegalArgumentException. This patch adds a boolean mIsServiceConnected that tracks whether the payment app's service is connected to Chrome. If this boolean is false, then Chrome does not attempt to unbind from the payment app service. After this patch, if the Android payment app disconnects from Chrome midway through the payment process or the binding fails, Chrome does not bother to unbind on its own side and thus avoids the IllegalArgumentException. Bug: 828852 Change-Id: I653b3bef07562f815d8e53d62c7aff97649bcac5 Reviewed-on: https://chromium-review.googlesource.com/995618 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by:Ganggui Tang <gogerald@chromium.org> Cr-Commit-Position: refs/heads/master@{#548532}
Showing
Please register or sign in to comment