Put BrowserMetrics with embedded profiles into subdir for auto-upload.
Because the BrowserMetrics file now has an embedded profile, it isn't
sent as part of the startup sequence but a minute or so after. That
means the browser could exit and not send anything with the "previous
run" metrics file being overwritten at the next startup.
Instead, append a date-stamp to the last-run filename and move it to
a subdirectory from which files will be removed only after they are
uploaded.
BUG=695880
Review-Url: https://codereview.chromium.org/2938263002
Cr-Commit-Position: refs/heads/master@{#484116}
CrOS-Libchrome-Original-Commit: 38d8bb9328a2d0a1b7d8373ddd70971c1ce4eeb6
2 files changed