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

Issue 701403002: [ServiceWorkerCache Cleanup] Make the state of the cache backend explicit (Closed)

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

Description

[ServiceWorkerCache] Make the state of the cache backend explicit The ServiceWorkerCache's backend transitions from uninitialized, to open, to closed. Make that explicit in code by adding a state variable instead of checking the state of the initialized_ and backend_ member variables. BUG=430884 Committed: https://crrev.com/7fbcce797ed32cf1d653ca5e4bf1dfad4cd7fc46 Cr-Commit-Position: refs/heads/master@{#303115}

Patch Set 1 #

Patch Set 2 : Nits #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -40 lines) Patch
M content/browser/service_worker/service_worker_cache.h View 1 3 chunks +11 lines, -2 lines 2 comments Download
M content/browser/service_worker/service_worker_cache.cc View 1 11 chunks +54 lines, -38 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
jkarlin
Thanks michaeln. Hopefully this makes the code clearer.
6 years, 1 month ago (2014-11-06 16:35:11 UTC) #2
michaeln
lgtm!
6 years, 1 month ago (2014-11-06 22:01:09 UTC) #3
jkarlin
On 2014/11/06 22:01:09, michaeln wrote: > lgtm! Thanks!
6 years, 1 month ago (2014-11-06 22:16:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/701403002/20001
6 years, 1 month ago (2014-11-06 22:18:08 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years, 1 month ago (2014-11-06 23:05:15 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/7fbcce797ed32cf1d653ca5e4bf1dfad4cd7fc46 Cr-Commit-Position: refs/heads/master@{#303115}
6 years, 1 month ago (2014-11-06 23:05:55 UTC) #8
falken
This seems to have broken http/tests/serviceworker/cache-match.html: https://code.google.com/p/chromium/issues/detail?id=431163 https://codereview.chromium.org/701403002/diff/20001/content/browser/service_worker/service_worker_cache.h File content/browser/service_worker/service_worker_cache.h (right): https://codereview.chromium.org/701403002/diff/20001/content/browser/service_worker/service_worker_cache.h#newcode115 content/browser/service_worker/service_worker_cache.h:115: BackendUninitialized, // ...
6 years, 1 month ago (2014-11-07 05:03:21 UTC) #10
jkarlin
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/709003003/ by jkarlin@chromium.org. ...
6 years, 1 month ago (2014-11-07 12:46:45 UTC) #11
jkarlin
6 years, 1 month ago (2014-11-07 18:55:57 UTC) #12
Message was sent while issue was closed.
https://codereview.chromium.org/701403002/diff/20001/content/browser/service_...
File content/browser/service_worker/service_worker_cache.h (right):

https://codereview.chromium.org/701403002/diff/20001/content/browser/service_...
content/browser/service_worker/service_worker_cache.h:115: BackendUninitialized,
 // No backend, create backend on first operation.
On 2014/11/07 05:03:21, falken wrote:
> Style nit: chromium enums are SNAKE_CASE

Thanks! Done in https://codereview.chromium.org/692993005/

Powered by Google App Engine
This is Rietveld 408576698