Chromium Code Reviews
Description[Download Home] Use fewer AsyncTasks
Download updates cause a new AsyncTask to be created and executed,
resulting in a potential to overrun the Executor's queue size.
While it will result in less up-to-date values for free space,
settle for just having one AsyncTask that can be in play at once
by explicitly checking if another AsyncTask is already running.
Moreover, catch any exceptions that may fire if we still overflow
the queue with our single task.
BUG=669493
Committed: https://crrev.com/731bb5908b6f2c782efc2fd1ef05a3ec72d1d822
Cr-Commit-Position: refs/heads/master@{#435745}
Patch Set 1 #Patch Set 2 : Fix tests #Patch Set 3 : Remove accidental thing #
Messages
Total messages: 16 (8 generated)
|
||||||||||||||||||||||||||||