ipc: Slight change to GetSenderWithProcessId().

Previously, the implementation of the method acquired a lock. This means that
the caller could not guarantee that the returned Sender was still valid. I
changed the method to require that the caller acquire the lock, so that the
caller can guarantee the validity of the returned Sender.

BUG=561734

Review URL: https://codereview.chromium.org/1484763003

Cr-Commit-Position: refs/heads/master@{#362223}


CrOS-Libchrome-Original-Commit: 63c0fa2af4cf0072c04d5cdc6dedd59870cfbb42
2 files changed
tree: f74e0ee3693966e4ea457e692067a16701eb53b1
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/