angler-fishThe Vulnerability History Project

Revert of Implement timers by posting delayed tasks (patchset #21 id:400001 of https://codereview.chromium.org/1134523002/)

      Reason for revert:
Reverting once again because this makes ScriptContextSetTest.LifeCycle leak:

http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/12840/steps/extensions_unittests%20%28with%20patch%29/logs/stdio

The reason is that many of these tests do things backwards: they first initialize Blink and then create a message loop. This means we can't create a real scheduler for Blink and have to jump through hoops to make things work. We could extend this mock scheduler to properly clean things up, but I think I'll instead try to get rid of the mock scheduler completely.

Original issue's description:
> Implement timers by posting delayed tasks
> 
> This patch refactors TimerBase to post tasks delayed tasks and
> deletes the now-obsolete timer heap and shared timer mechanism.
> 
> ATTN Sheriffs: If there are weird layout test flakes all of a
> sudden, this patch may be the cause since the interleaving of
> timers with other posted tasks will change.
> 
> Original patch by Alex Clarke <alexclarke@chromium.org>.
> 
> BUG=463143,416362,480522
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196308

TBR=alexclarke@chromium.org,erikcorry@chromium.org,jochen@chromium.org,kinuko@chromium.org,rmcilroy@chromium.org,sigbjornf@opera.com,jchaffraix@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=463143,416362,480522

Review URL: https://codereview.chromium.org/1162903005

git-svn-id: svn://svn.chromium.org/blink/trunk@196317 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    
commit 753b7c8e21397bb370ae5b46af73287211d6f6b8
-5
+7 -1
+2 -1
-102
-2
-63
-59
-48
-75
-153
-67
+34 -322
+9 -26
+104 -52
-6
+68 -3
-5
-6
expand_less