Add AssertBaseSyncPrimitivesAllowed() in Process::WaitForExit*().

With this CL, calls to Process::WaitForExit*() must be done
within the scope of a base::ScopedAllowBaseSyncPrimitives*.

Since calls to Process::WaitForExit*() can potentially
deadlock, it is desirable to have them reviewed by a //base
OWNER.

Bug: 766678
Change-Id: I1d5cc98984b84a412492db5f83c8db4b20396367
Reviewed-on: https://chromium-review.googlesource.com/703475
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Reviewed-by: Elliot Glaysher <erg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512642}

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