ServiceWorker: Skip update check if needed

Add ServiceWorkerRegisterJob::IsUpdateCheckNeeded() to control whether
update check is needed.

Bug: 648295
Change-Id: I4778ce87562fb73742e38bc652bd07485eedf67e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1608832
Reviewed-by: Makoto Shimazu <shimazu@chromium.org>
Commit-Queue: Ting Shao <ting.shao@intel.com>
Cr-Commit-Position: refs/heads/master@{#662102}
2 files changed