Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Issue 605163002: Service Worker: Remove legacy code for resolving register() to a version (Closed)

Created:
6 years, 2 months ago by falken
Modified:
6 years, 2 months ago
Reviewers:
nhiroki
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Service Worker: Remove legacy code for resolving register() to a version register() resolves to a ServiceWorkerRegistration, so we no longer need to pass a ServiceWorkerVersion around. This also cleans up a couple TODOs in RegisterJob: - In ContinueWithRegistrationForSameScriptUrl, the TODO made sense when register resolved to a version not a registration. Now, the current behavior seems OK. - In UpdateAndContinue, the TODO was misleading. We don't have to handle an existing installing worker within RegisterJob since each job either succeeds with a waiting/active worker or fails and cleans up the installing worker. BUG=406240 Committed: https://crrev.com/da5382d00deafd9909ef02612cd7d4d0b65e4d74 Cr-Commit-Position: refs/heads/master@{#297131}

Patch Set 1 #

Total comments: 1

Patch Set 2 : only resolve on active_version #

Messages

Total messages: 11 (2 generated)
falken
PTAL
6 years, 2 months ago (2014-09-26 08:24:05 UTC) #2
nhiroki
https://codereview.chromium.org/605163002/diff/1/content/browser/service_worker/service_worker_register_job.cc File content/browser/service_worker/service_worker_register_job.cc (right): https://codereview.chromium.org/605163002/diff/1/content/browser/service_worker/service_worker_register_job.cc#newcode297 content/browser/service_worker/service_worker_register_job.cc:297: if (existing_registration->GetNewestVersion()) { The CL description says... > if ...
6 years, 2 months ago (2014-09-26 09:35:54 UTC) #3
falken
> Is this correct? I suspect that there is a no-active version case when the ...
6 years, 2 months ago (2014-09-29 01:44:21 UTC) #4
nhiroki
LGTM, nice cleanup! :)
6 years, 2 months ago (2014-09-29 02:17:34 UTC) #5
falken
On 2014/09/29 02:17:34, nhiroki wrote: > LGTM, nice cleanup! :) thanks!
6 years, 2 months ago (2014-09-29 02:19:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/605163002/20001
6 years, 2 months ago (2014-09-29 02:20:35 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001) as 7a1c077d9ae64c7ab4ee7d8f823cf026320f65a6
6 years, 2 months ago (2014-09-29 03:09:05 UTC) #9
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/da5382d00deafd9909ef02612cd7d4d0b65e4d74 Cr-Commit-Position: refs/heads/master@{#297131}
6 years, 2 months ago (2014-09-29 03:11:48 UTC) #10
falken
6 years, 2 months ago (2014-09-29 03:25:31 UTC) #11
Message was sent while issue was closed.
On 2014/09/29 03:11:48, I haz the power (commit-bot) wrote:
> Patchset 2 (id:??) landed as
> https://crrev.com/da5382d00deafd9909ef02612cd7d4d0b65e4d74
> Cr-Commit-Position: refs/heads/master@{#297131}

Oops, the bug number should have been http://crbug.com/396400.

Powered by Google App Engine
This is Rietveld 408576698