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
tree: 861c2b3ea4baeb7aaf4d52a6e76c8c7c1d585c43
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/