Handle multiple Browser process metrics files.

Instead of storing metrics active metrics files in one place and
moving them to an "upload" directory upon the next start, just store
them in that directory from the beginning.

The filename includes the owning PID as part of the name.  When
uploading, extract the PID and delay the file if that PID is still
running.  Another process could be reusing the PID but it'll just
get delayed until that process also exits.

Bug: 696721
Change-Id: I654606eba3c1a6f39356d2d0304d6d21311011f8
Reviewed-on: https://chromium-review.googlesource.com/699796
Commit-Queue: Brian White <bcwhite@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512221}

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