Make IdentityAccessorImpl scoped to IdentityService
IdentityAccessorImpl uses and observes identity manager, which is scoped to profile, so it should not outlive the profile it's assigned to (before this IdentityAccessorImpl instances were leaked, never removed themselves from IdentityManager observer list, and were causing DCHECK failures during IdentityManager's observer_list_) BUG=None Change-Id: I6d7966d0d2a2db859c08e9a938a3cf73302ee37a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1573169Reviewed-by:Colin Blundell <blundell@chromium.org> Commit-Queue: Toni Baržić <tbarzic@chromium.org> Cr-Commit-Position: refs/heads/master@{#652543}
Showing
Please register or sign in to comment