Chromium Code Reviews
Descriptionremove unnecessary thread hopping when updating Download notifications
We create an async task to call DownloadManagerService.updateAllNotifications() when updating notifications.
However, later we post a task back to the Ui thread in SystemDownloadNotifier
We create the Async task just because of the strict mode:
addCompletedDownload() and canResolveDownloadItem() needs to be on a non UI thread.
This CL moves the updateAllNotifications() back to the UI thread.
only addCompletedDownload() and canResolveDownloadItem() are left in the async task.
BUG=693273
Review-Url: https://codereview.chromium.org/2701613005
Cr-Commit-Position: refs/heads/master@{#451524}
Committed: https://chromium.googlesource.com/chromium/src/+/5939cf034a8d276d3f08b16a85503905a4c0580a
Patch Set 1 #
Total comments: 8
Patch Set 2 : addressing comments #
Messages
Total messages: 15 (10 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||