Remove NotificationService notifications from IncidentReportingService
NOTIFICATION_PROFILE_DESTROYED was only used for normal (on the record) profiles. But normal profiles aren't destroyed until browser shutdown, and are destroyed after SafeBrowsingService is destroyed, so there is no need to listen to this notification. NOTIFICATION_PROFILE_ADDED can be replaced with ProfileManagerObserver::OnProfileAdded. Also, delegate between the two constructors (prod and test), so code needn't be duplicated between them. Bug: 268984 Change-Id: Iab614421b7c51136ccae79a45d00f8ee709a73b7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1832883 Commit-Queue: Evan Stade <estade@chromium.org> Reviewed-by:Greg Thompson <grt@chromium.org> Cr-Commit-Position: refs/heads/master@{#703511}
Showing
Please register or sign in to comment