Fix missing username in reported unsafe events
The first event(s) that used GetProfileUsername() would get an empty username since identity_manager_ is still null when events are reported. The fix is to make the that variable in the ctor. This also adds a check for the profile user name in EventReportValidator to ensure correct reporting for that field. Bug: 1140993 Change-Id: I1f96bc68e5196fbfc29b5bf287e5894b578a2f03 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2493042Reviewed-by:Daniel Rubery <drubery@chromium.org> Commit-Queue: Dominique Fauteux-Chapleau <domfc@chromium.org> Cr-Commit-Position: refs/heads/master@{#821312}
Showing
Please register or sign in to comment