Dispatch install event during ServiceWorker registration
More generally, reshape registration code to fit the spec. Some
changes include:
- Check the status code passed by StoreRegistration. This currently
can’t fail, so it’s untested.
- Check the status code passed by StartWorker. This case is already
tested by Register_FailToStartWorker.
- After starting the worker, run the registration callbacks and continue
on to the installation flow. New tests are added for this behavior.
BUG=349337
Review URL: https://codereview.chromium.org/
223403006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261711 0039d316-1c4b-4281-b951-d872f2087c98