Revert "Download notification: Simplify foreground notification events."
This reverts commit bfb35d53. Reason for revert: Triggers a bug in the old code. see crbug/1056107. Original change's description: > 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/+/2063853 > Reviewed-by: David Trainor <dtrainor@chromium.org> > Commit-Queue: Xing Liu <xingliu@chromium.org> > Cr-Commit-Position: refs/heads/master@{#743368} TBR=dtrainor@chromium.org,qinmin@chromium.org,xingliu@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. Bug: 922929 Change-Id: I467b19ba958a380a08e464339e735d5e30e376c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2076977Reviewed-by:Xing Liu <xingliu@chromium.org> Commit-Queue: Xing Liu <xingliu@chromium.org> Cr-Commit-Position: refs/heads/master@{#745156}
Showing
Please register or sign in to comment