Download notification: Simplify foreground notification events.
Currently we use DownloadForegroundServiceObservers to broadcast download foreground service events. It uses reflection to cache the class name and then persist to android shared preference. DownloadNotificationServiceObserver implements DownloadForegroundServiceObservers.Observer, and then call methods of the singleton object of DownloadNotificationService. Also, onForegroundServiceRestarted() is not getting called, which make the following calls dead code. This is extremely weird, we can just call the one line singleton method. Bug: 922929 Change-Id: I28ff5552fd7fc0fd5a111cd4971d6bf4514bb45f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063853Reviewed-by:David Trainor <dtrainor@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#743368}
Showing
Please register or sign in to comment