-
Evan Stade authored
Instead of using NOTIFICATION_PROFILE_CREATED, listen for OnProfileAdded. This will automatically filter out incognito profiles, which are not "added" to the ProfileManager. Also, there's no need to listen for profile destruction as ProfileManager and its profiles are only destroyed after SafeBrowsingService is shut down. Bug: 268984 Change-Id: I73f8163d6488968fec019f878951172d348e9e81 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1836433Reviewed-by:
Daniel Rubery <drubery@chromium.org> Commit-Queue: Evan Stade <estade@chromium.org> Cr-Commit-Position: refs/heads/master@{#703113}
44fb6e38