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

Issue 2006923005: [Offline Pages] Two-step expiration in storage manager. (Closed)

Created:
4 years, 7 months ago by romax
Modified:
4 years, 6 months ago
Reviewers:
jianli
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Two-step expiration in storage manager. This patch expanded the two-step expiration from offline page model to storage manager. Now the storage manager would expire a page and delete the archived file when it wasn't used long enough and after a certain time interval remove the page entry from metadata store. Also added tests for corresponding cases. BUG=605615 Committed: https://crrev.com/2b43a3e24f906a24f3a85c94892e3824cce521e7 Cr-Commit-Position: refs/heads/master@{#396513}

Patch Set 1 #

Total comments: 28

Patch Set 2 : Addressed comments. #

Total comments: 2

Patch Set 3 : Fixing win build. #

Patch Set 4 : fixing unittest on win. #

Total comments: 38

Patch Set 5 : fixing build #

Patch Set 6 : Addressing comments. #

Total comments: 10

Patch Set 7 : more comments, commit ready. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -116 lines) Patch
M components/offline_pages/client_policy_controller.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/client_policy_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/offline_page_client_policy.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 3 4 5 3 chunks +10 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 6 chunks +12 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_storage_manager.h View 1 2 3 4 5 6 4 chunks +62 lines, -30 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager.cc View 1 2 3 4 5 6 7 chunks +70 lines, -44 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager_unittest.cc View 1 2 3 4 5 6 18 chunks +122 lines, -34 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
romax
PTAL, and we can talk if i'm on the wrong way...
4 years, 7 months ago (2016-05-24 22:09:34 UTC) #2
romax
PTAL
4 years, 7 months ago (2016-05-24 22:37:52 UTC) #4
jianli
https://codereview.chromium.org/2006923005/diff/1/components/offline_pages/offline_page_model.cc File components/offline_pages/offline_page_model.cc (right): https://codereview.chromium.org/2006923005/diff/1/components/offline_pages/offline_page_model.cc#newcode526 components/offline_pages/offline_page_model.cc:526: DeletePagesByOfflineId(offline_ids, callback); I don't think we want to delete ...
4 years, 7 months ago (2016-05-24 23:43:32 UTC) #5
romax
PTAL. 1. Deleted RemovePageItems, using existing DeletePagesByOfflineId, now it will delete archived files first and ...
4 years, 7 months ago (2016-05-25 20:05:24 UTC) #6
jianli
https://codereview.chromium.org/2006923005/diff/60001/components/offline_pages/archive_manager.h File components/offline_pages/archive_manager.h (right): https://codereview.chromium.org/2006923005/diff/60001/components/offline_pages/archive_manager.h#newcode50 components/offline_pages/archive_manager.h:50: // exist, or |archive_path| is empty. Adding this behavior ...
4 years, 7 months ago (2016-05-26 21:59:32 UTC) #7
romax
more comments addressed. Removed logic added in previous patches. using times instead of passing arguments ...
4 years, 7 months ago (2016-05-27 00:41:38 UTC) #8
jianli
lgtm https://codereview.chromium.org/2006923005/diff/100001/components/offline_pages/offline_page_storage_manager.h File components/offline_pages/offline_page_storage_manager.h (right): https://codereview.chromium.org/2006923005/diff/100001/components/offline_pages/offline_page_storage_manager.h#newcode60 components/offline_pages/offline_page_storage_manager.h:60: // Asks the client to get all offline ...
4 years, 7 months ago (2016-05-27 00:57:17 UTC) #9
romax
more comments and commit ready if all trybots are green. https://codereview.chromium.org/2006923005/diff/100001/components/offline_pages/offline_page_storage_manager.h File components/offline_pages/offline_page_storage_manager.h (right): https://codereview.chromium.org/2006923005/diff/100001/components/offline_pages/offline_page_storage_manager.h#newcode60 ...
4 years, 7 months ago (2016-05-27 02:18:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2006923005/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2006923005/120001
4 years, 6 months ago (2016-05-27 18:09:24 UTC) #13
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-05-27 18:13:50 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-05-27 18:15:27 UTC) #16
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/2b43a3e24f906a24f3a85c94892e3824cce521e7
Cr-Commit-Position: refs/heads/master@{#396513}

Powered by Google App Engine
This is Rietveld 408576698