[Metrics] Fix DCHECK failure in FamilyUserMetricsProvider
Sometimes ProvideCurrentSessionData() gets called at a bad time when the user has finished logging in but the user profile has not finished loading. This scenario causes a DCHECK failure. This CL returns prematurely if the user profile has not finished loading, and retrieves the primary profile manually. Bug: 1136561 Change-Id: Ibd4845b92c3284bd856f0a152618bb7abe5c44bb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2462632Reviewed-by:Xiyuan Xia <xiyuan@chromium.org> Reviewed-by:
Alexei Svitkine <asvitkine@chromium.org> Commit-Queue: Toby Huang <tobyhuang@chromium.org> Cr-Commit-Position: refs/heads/master@{#816758}
Showing
Please register or sign in to comment