[WebLayer] PRService takes over disconnectFromClientWithDebugMessage()
Currently, PRService delegates disconnectFromClientWithDebugMessage() to CPRService which in turns calls PRService#onError and PRService#close() to close the PRClient. This is unnecessary. Also this indicates an layering violation. Since CPRService depends on PRService, it's more natural for CPRService to call PRService's disconnectFromClientWithDebugMessage() than the other way around. Change-Id: I479f1ae9794b8c5b5997410758fdd1a4e7d97ec0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522962 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Rouslan Solomakhin <rouslan@chromium.org> Cr-Commit-Position: refs/heads/master@{#825198}
Showing
Please register or sign in to comment