[jumbo] use RunningOnValgrind from dynamic_annotations

dynamic_annotations is a small library intended to help tsan code
coexist with valgrind.  This CL makes the linux sandbox code use
the RunningOnValgrind() function instead of (multiply) defining its
own version, and does not use the annotations which are being phased
out.

TODO: remove valgrind checks that are no longer needed (perhaps
all of these?)

Bug: 786831,349861
Change-Id: I39f83d5dc839c54c5bc9297e9a92bd3f84ead726
Reviewed-on: https://chromium-review.googlesource.com/778881
Commit-Queue: Mostyn Bramley-Moore <mostynb@vewd.com>
Reviewed-by: Julien Tinnes <jln@chromium.org>
Reviewed-by: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519858}

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