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

Issue 565913002: Sort ServiceWorkerCacheStorage::Keys() by creation order. (Closed)

Created:
6 years, 3 months ago by jkarlin
Modified:
6 years, 3 months ago
Reviewers:
michaeln
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@master
Project:
chromium
Visibility:
Public.

Description

Sort ServiceWorkerCacheStorage::Keys() in creation order. Keeps a vector of cache names in creation order. They're written to and read from the the index file in the same order. This simplifies the keys unit tests as the order of the vectors is always the same and they can now be compared directly. BUG=408787 Committed: https://chromium.googlesource.com/chromium/src/+/adc3bcac9a00eb7709dd279cf54751a025a3abf6

Patch Set 1 #

Patch Set 2 : stlized erase #

Total comments: 4

Patch Set 3 : Strings to StringVector #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -42 lines) Patch
M content/browser/service_worker/service_worker_cache_storage.h View 1 2 3 chunks +8 lines, -4 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.cc View 1 2 12 chunks +22 lines, -21 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc View 3 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
jkarlin
Thanks!
6 years, 3 months ago (2014-09-12 14:15:50 UTC) #2
michaeln
lgtm https://codereview.chromium.org/565913002/diff/20001/content/browser/service_worker/service_worker_cache_storage.cc File content/browser/service_worker/service_worker_cache_storage.cc (right): https://codereview.chromium.org/565913002/diff/20001/content/browser/service_worker/service_worker_cache_storage.cc#newcode211 content/browser/service_worker/service_worker_cache_storage.cc:211: virtual void WriteIndex(const ServiceWorkerCacheStorage::Strings& cache_names, is the fully ...
6 years, 3 months ago (2014-09-12 21:45:32 UTC) #3
jkarlin
https://codereview.chromium.org/565913002/diff/20001/content/browser/service_worker/service_worker_cache_storage.cc File content/browser/service_worker/service_worker_cache_storage.cc (right): https://codereview.chromium.org/565913002/diff/20001/content/browser/service_worker/service_worker_cache_storage.cc#newcode211 content/browser/service_worker/service_worker_cache_storage.cc:211: virtual void WriteIndex(const ServiceWorkerCacheStorage::Strings& cache_names, On 2014/09/12 21:45:32, michaeln ...
6 years, 3 months ago (2014-09-15 14:14:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/565913002/40001
6 years, 3 months ago (2014-09-15 15:37:11 UTC) #6
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/9fffc1594734dfc292ec558b96d9ceb08ff08671 Cr-Commit-Position: refs/heads/master@{#294838}
6 years, 3 months ago (2014-09-15 17:01:09 UTC) #7
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 17:02:21 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as adc3bcac9a00eb7709dd279cf54751a025a3abf6

Powered by Google App Engine
This is Rietveld 408576698