Fix problem with persistent histograms getting ID of zero.
1) Create persistent histogram records in an atomic manner so there are no half-filled entries left around should the process crash before it completes. 2) Validate the ID is non-zero before trying to access a histogram from persistent storage. BUG=649371 Review-Url: https://codereview.chromium.org/2367503002 Cr-Commit-Position: refs/heads/master@{#420654}
Showing
Please register or sign in to comment