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

Issue 1181573002: ServiceWorker: SWDiskCacheMigrator should just move DiskCache files on Android (Closed)

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

Description

ServiceWorker: SWDiskCacheMigrator should just move DiskCache files on Android ServiceWorkerDiskCacheMigrator is designed to migrate DiskCache files from the BlockFile backend to the Simple backend, but Android has already used the Simple backend and the migrator just have to move files into a new directory. This CL also includes... - making the migrator more self-contained in order to simplify callsites of the migrator (ie. ServiceWorkerStorage). The ctor of the migrator receives diskcache paths and a diskcache thread instead of already initialized diskcaches. - removing the dest directory before migration to clean up partial results of the previous attempt. BUG=487482 TEST=content_unittests --gtest_filter=ServiceWorker* Committed: https://crrev.com/ba504e7e2f5b57c93766245ffe6aa2c07188f5b6 Cr-Commit-Position: refs/heads/master@{#334117}

Patch Set 1 : split from https://codereview.chromium.org/1152543002/ #

Patch Set 2 : just move diskcache on Android #

Patch Set 3 : fix #

Total comments: 4

Patch Set 4 : MigrateForAndroid #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -64 lines) Patch
M content/browser/service_worker/service_worker_disk_cache_migrator.h View 2 3 5 chunks +25 lines, -5 lines 1 comment Download
M content/browser/service_worker/service_worker_disk_cache_migrator.cc View 1 2 3 6 chunks +107 lines, -8 lines 0 comments Download
M content/browser/service_worker/service_worker_disk_cache_migrator_unittest.cc View 1 2 3 5 chunks +142 lines, -51 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
nhiroki
Hi Michael, can you review this? As commented at https://codereview.chromium.org/1152543002/#msg49, I factored out the migrator ...
5 years, 6 months ago (2015-06-11 18:25:20 UTC) #2
michaeln
good idea to split this part out https://codereview.chromium.org/1181573002/diff/40001/content/browser/service_worker/service_worker_disk_cache_migrator.cc File content/browser/service_worker/service_worker_disk_cache_migrator.cc (right): https://codereview.chromium.org/1181573002/diff/40001/content/browser/service_worker/service_worker_disk_cache_migrator.cc#newcode263 content/browser/service_worker/service_worker_disk_cache_migrator.cc:263: Complete(base::Move(src_path_, dest_path_) ...
5 years, 6 months ago (2015-06-11 22:21:31 UTC) #3
nhiroki
Thank you! Updated. https://codereview.chromium.org/1181573002/diff/40001/content/browser/service_worker/service_worker_disk_cache_migrator.cc File content/browser/service_worker/service_worker_disk_cache_migrator.cc (right): https://codereview.chromium.org/1181573002/diff/40001/content/browser/service_worker/service_worker_disk_cache_migrator.cc#newcode263 content/browser/service_worker/service_worker_disk_cache_migrator.cc:263: Complete(base::Move(src_path_, dest_path_) ? SERVICE_WORKER_OK On 2015/06/11 ...
5 years, 6 months ago (2015-06-12 01:08:25 UTC) #4
michaeln
lgtm! https://codereview.chromium.org/1181573002/diff/60001/content/browser/service_worker/service_worker_disk_cache_migrator.h File content/browser/service_worker/service_worker_disk_cache_migrator.h (right): https://codereview.chromium.org/1181573002/diff/60001/content/browser/service_worker/service_worker_disk_cache_migrator.h#newcode6 content/browser/service_worker/service_worker_disk_cache_migrator.h:6: #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_DISK_CACHE_MIGRATOR_H_ doh :)
5 years, 6 months ago (2015-06-12 01:58:51 UTC) #5
nhiroki
Thank you!!!
5 years, 6 months ago (2015-06-12 02:14:22 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1181573002/60001
5 years, 6 months ago (2015-06-12 02:14:56 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 6 months ago (2015-06-12 02:47:29 UTC) #9
commit-bot: I haz the power
5 years, 6 months ago (2015-06-12 02:48:26 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ba504e7e2f5b57c93766245ffe6aa2c07188f5b6
Cr-Commit-Position: refs/heads/master@{#334117}

Powered by Google App Engine
This is Rietveld 408576698