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

Issue 2041983006: [Offline Pages] Filtering expired pages and fix consistency check. (Closed)

Created:
4 years, 6 months ago by romax
Modified:
4 years, 6 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, asvitkine+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] Filtering expired pages and fix consistency check. Filtering expired pages when querying offline pages. Using expiring instead of removing page entries in consistency check. Also will remove files in archive folder to which have no page entry pointing. BUG=616622 Committed: https://crrev.com/b057d1e7c41c04cad80cbd7232ebcfed293c9ee7 Cr-Commit-Position: refs/heads/master@{#398744}

Patch Set 1 #

Total comments: 16

Patch Set 2 : Comments and some naming changes. #

Total comments: 21

Patch Set 3 : comments #

Patch Set 4 : minor name changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -62 lines) Patch
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils_unittest.cc View 1 10 chunks +42 lines, -10 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 chunks +5 lines, -6 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 2 chunks +14 lines, -6 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 13 chunks +75 lines, -34 lines 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 2 chunks +26 lines, -3 lines 0 comments Download
M components/offline_pages/offline_page_test_store.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_test_store.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.h View 1 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/stub_offline_page_model.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
romax
PTAL.
4 years, 6 months ago (2016-06-07 20:14:20 UTC) #2
fgorski
https://codereview.chromium.org/2041983006/diff/1/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc File chrome/browser/android/offline_pages/offline_page_utils_unittest.cc (right): https://codereview.chromium.org/2041983006/diff/1/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc#newcode224 chrome/browser/android/offline_pages/offline_page_utils_unittest.cc:224: profile(), GURL(kTestPage3Url))); I am not sure I understand this ...
4 years, 6 months ago (2016-06-07 22:46:15 UTC) #3
romax
Sorry for adding more files since I've changed some names... And please let me know ...
4 years, 6 months ago (2016-06-08 01:31:26 UTC) #4
fgorski
lgtm with nits and one extra comment. Also adding Jian Li, as it seems that ...
4 years, 6 months ago (2016-06-08 20:27:07 UTC) #6
jianli
lgtm https://codereview.chromium.org/2041983006/diff/20001/components/offline_pages/offline_page_model_impl.cc File components/offline_pages/offline_page_model_impl.cc (right): https://codereview.chromium.org/2041983006/diff/20001/components/offline_pages/offline_page_model_impl.cc#newcode877 components/offline_pages/offline_page_model_impl.cc:877: DeleteHeadlessArchives(archive_paths); I think "Orphaned" is better than "Headless". ...
4 years, 6 months ago (2016-06-08 21:10:35 UTC) #7
romax
Addressed comments. Also adding holte@ for histograms.xml owner review. https://codereview.chromium.org/2041983006/diff/20001/components/offline_pages/offline_page_model_impl.cc File components/offline_pages/offline_page_model_impl.cc (right): https://codereview.chromium.org/2041983006/diff/20001/components/offline_pages/offline_page_model_impl.cc#newcode877 components/offline_pages/offline_page_model_impl.cc:877: ...
4 years, 6 months ago (2016-06-08 22:18:59 UTC) #10
Steven Holte
histograms lgtm
4 years, 6 months ago (2016-06-08 23:50:29 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041983006/60001
4 years, 6 months ago (2016-06-09 00:01:52 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-09 00:10:10 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 00:12:26 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b057d1e7c41c04cad80cbd7232ebcfed293c9ee7
Cr-Commit-Position: refs/heads/master@{#398744}

Powered by Google App Engine
This is Rietveld 408576698