[Android MR] Properly handle multiple create route requests

Previously if a new create route request comes in, we didn't
consider the case where there is already a current session or
there is a pending request.

In this CL, when this happens, all active routes will be closed
and the pending request will be canceled, so that the new request
can be fulfilled without interacting with previous
session/requests.

Bug: 711860
Change-Id: I7cef7bf76743d2c122cf07dab0bc80db2871eca5
Reviewed-on: https://chromium-review.googlesource.com/1234794
Commit-Queue: Zhiqiang Zhang <zqzhang@chromium.org>
Reviewed-by: Thomas Guilbert <tguilbert@chromium.org>
Cr-Commit-Position: refs/heads/master@{#592611}
1 file changed