[WebLayer] PRService no longer asserts use-after-close
Now that PRService has implemented several interfaces, it's hard to demand the callers that they should no longer use the class after PRService has been closed because the callers are only responsible for the interfaces. What if the interface provides hasClosed() and requires the callers to check before use? It could complicate the caller code and the interfaces (for adding hasClosed to about 10 interfaces that PRService would implement). For this reason, this CL is to make PRService more flexible to use. Instead of asserting that mBrowserPaymentRequest and mClient should not be used after PRService is closed, PRService will just early return. Bug: 1146565 Change-Id: Ifd5e8a73ea66bdc0b3c615695f2fc3009d4f62ae Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522980 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#825199}
Showing
Please register or sign in to comment