Fix UAF in EnterpriseReportingPrivateUploadChromeDesktopReportFunction.

Delay the deletion of cloud_policy_client_ so it has time to clean up and avoid the UAF.

Change-Id: I57c3afef17f2e07cb89d9fb1e79641c964415b17
Bug: 863933
Reviewed-on: https://chromium-review.googlesource.com/1138411
Reviewed-by: Owen Min <zmin@chromium.org>
Commit-Queue: Georges Khalil <georgesak@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575648}
2 files changed