commit | e2f14475e68deef7b541c5454c4a340112a7378a | [log] [tgz] |
---|---|---|
author | xiaofeng.zhang <[email protected]> | Wed Jan 11 06:18:33 2017 |
committer | Commit bot <[email protected]> | Wed Jan 11 06:18:33 2017 |
tree | 5991a7b4fb2ade4987883229b48cce9123ef05f3 | |
parent | 9b3dd2bc8783876fdf3d9e242b4240a3537d19e2 [diff] |
[ServiceWorker] Some code clean-up for content::ServiceWorkerContextClient Using switch is the best option here to get compile time verification, and we can catch it if WebServiceWorkerEventResult gains a new type later. Here also replace some if-return with DCHECK. BUG=None Review-Url: https://codereview.chromium.org/2606303002 Cr-Commit-Position: refs/heads/master@{#442822}