Group ConnectToApplication-related info into a params struct.
It makes the code easier to read and less error-prone.
Besides, this CL also:
- stops using raw ApplicationInstance pointer to refer to originator, because it becomes invalid after the originator is gone.
- removes requestor_url because orignator_identity.url serves the same purpose.
BUG=None
Review URL: https://codereview.chromium.org/1307273004
Cr-Commit-Position: refs/heads/master@{#347213}
CrOS-Libchrome-Original-Commit: be2a3831785d9ad205e542ca6e9ccb52f734307f
15 files changed