Chromium Code Reviews| Index: LayoutTests/http/tests/serviceworker/chromium/service-worker-gc.html | 
| diff --git a/LayoutTests/http/tests/serviceworker/chromium/service-worker-gc.html b/LayoutTests/http/tests/serviceworker/chromium/service-worker-gc.html | 
| index 18e09f603fb74b31cb7594bc4af669a5cb0de62f..aa4176bf71892ab3650d58e1084b68ad191274f8 100644 | 
| --- a/LayoutTests/http/tests/serviceworker/chromium/service-worker-gc.html | 
| +++ b/LayoutTests/http/tests/serviceworker/chromium/service-worker-gc.html | 
| @@ -27,7 +27,14 @@ function unregisterAndRegister(url, scope) { | 
| }); | 
| } | 
| -function onRegister(sw) { | 
| +function onRegister(registration) { | 
| + registrationObservation = internals.observeGC(registration); | 
| 
 
falken
2014/08/14 04:46:11
observeGC just returns an observer you can use to
 
horo
2014/08/14 07:11:46
Done.
 
 | 
| + registration.addEventListener('updatefound', (function() { | 
| + onUpdate(registration.installing); | 
| + })); | 
| +} | 
| + | 
| +function onUpdate(sw) { | 
| swObservation = internals.observeGC(sw); | 
| sw.addEventListener('statechange', onStateChange); | 
| } |