Add DCHECK for valid process handle in base::GetProcId.

I ran the test that was flaky the first time this landed (SingleClientAppsSyncTest.StartWithSomePlatformApps) 100 times or so.

I think crrev.com/c/998213 fixed the process metrics issue. I'll wait for M74 to branch before landing this.

Bug: 869154
Change-Id: I2828a3e616980c477db412450db62e78ab48df92
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1506822
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: David Bienvenu <davidbienvenu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#639236}
1 file changed