DescriptionTaskScheduler: Don't use a callback to post a task from TaskTracker.
Replace the existing TaskTracker::PostTask() method (which runs a
callback when it allows a task to be posted) with a
TaskTracker::WillPostTask() method (which returns true when it allows
a task to be posted). The caller is responsible for posting the task
when the new method returns true.
BUG=553459
Committed: https://crrev.com/7eef862850afcd443ea44fdebeb286b2b35d4ca2
Cr-Commit-Position: refs/heads/master@{#386072}
Patch Set 1 #
Total comments: 9
Patch Set 2 : CR danakj/robliao #3-4 (fix comments) #
Total comments: 7
Patch Set 3 : CR gab #6 (clarify WillPostTask comment) #Patch Set 4 : rebase #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 23 (9 generated)
|