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

Issue 2512073002: [Offline Pages] Removes two-step expiration related. (Closed)

Created:
4 years, 1 month ago by romax
Modified:
4 years ago
CC:
asvitkine+watch_chromium.org, chili+watch_chromium.org, chromium-reviews, dewittj+watch_chromium.org, dimich+watch_chromium.org, fgorski+watch_chromium.org, petewil+watch_chromium.org, romax+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Removes two-step expiration related. Removed the two-step expiration related code from offline pages. Also fixed the tests related. Now the pages which live longer than the time specified in policy would be deleted from both metadata store and disk. BUG=661721 Committed: https://crrev.com/cb27e63bd49fc1069fa4bbcf06ab6b50fd6d71ac Cr-Commit-Position: refs/heads/master@{#435381}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Rebased with tip of tree. #

Patch Set 3 : Addressed comments. #

Total comments: 12

Patch Set 4 : Addressed comments. #

Total comments: 6

Patch Set 5 : Histograms comments. #

Patch Set 6 : Merged and fixed presubmit warning. #

Patch Set 7 : Fix build issue. #

Patch Set 8 : adding unit in histograms. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -482 lines) Patch
M chrome/browser/android/offline_pages/offline_page_bookmark_observer.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bookmark_observer.cc View 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils_unittest.cc View 1 2 3 4 5 6 3 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 2 chunks +1 line, -2 lines 0 comments Download
M components/offline_pages/downloads/download_ui_adapter.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M components/offline_pages/offline_page_item.h View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M components/offline_pages/offline_page_item.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl_unittest.cc View 1 2 3 14 chunks +88 lines, -20 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_sql.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_sql.cc View 1 2 11 chunks +44 lines, -32 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 3 4 5 3 chunks +0 lines, -13 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 3 4 5 5 chunks +13 lines, -17 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 5 10 chunks +20 lines, -94 lines 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -50 lines 0 comments Download
M components/offline_pages/offline_page_model_query.h View 5 chunks +1 line, -11 lines 0 comments Download
M components/offline_pages/offline_page_model_query.cc View 2 chunks +0 lines, -14 lines 0 comments Download
M components/offline_pages/offline_page_model_query_unittest.cc View 3 chunks +0 lines, -22 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager.h View 1 2 5 chunks +22 lines, -31 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager.cc View 1 2 3 4 chunks +18 lines, -44 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager_unittest.cc View 1 2 15 chunks +22 lines, -80 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.h View 1 2 chunks +0 lines, -5 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.cc View 1 2 chunks +0 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 5 chunks +34 lines, -2 lines 0 comments Download

Messages

Total messages: 42 (23 generated)
romax
I've made it a new Cl in order to avoid some errors in diff after ...
4 years, 1 month ago (2016-11-17 23:46:43 UTC) #2
fgorski
Initial pass through https://codereview.chromium.org/2512073002/diff/1/chrome/browser/android/offline_pages/offline_page_bookmark_observer.h File chrome/browser/android/offline_pages/offline_page_bookmark_observer.h (right): https://codereview.chromium.org/2512073002/diff/1/chrome/browser/android/offline_pages/offline_page_bookmark_observer.h#newcode41 chrome/browser/android/offline_pages/offline_page_bookmark_observer.h:41: // Does work for actual expiring. ...
4 years, 1 month ago (2016-11-18 00:13:04 UTC) #8
jianli
https://codereview.chromium.org/2512073002/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/2512073002/diff/1/chrome/browser/android/offline_pages/offline_page_utils_unittest.cc#newcode169 chrome/browser/android/offline_pages/offline_page_utils_unittest.cc:169: RunUntilIdle(); This line can also be removed since SavePage ...
4 years, 1 month ago (2016-11-18 00:15:48 UTC) #9
romax
Addressed comments, PTAL, thanks! Also I think I somehow messed up the diff between #1 ...
4 years, 1 month ago (2016-11-18 20:50:49 UTC) #10
romax
I've followed Filip's suggestion to delete the patch which has unnecessary changes and now please ...
4 years, 1 month ago (2016-11-18 21:04:40 UTC) #12
fgorski
lgtm with coments (mostly nits). https://codereview.chromium.org/2512073002/diff/60001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc File components/offline_pages/offline_page_metadata_store_impl_unittest.cc (right): https://codereview.chromium.org/2512073002/diff/60001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc#newcode269 components/offline_pages/offline_page_metadata_store_impl_unittest.cc:269: ASSERT_TRUE(connection.DoesColumnExist(OFFLINE_PAGES_TABLE_V1, "title")); just the ...
4 years, 1 month ago (2016-11-22 00:03:00 UTC) #13
romax
Addressed comments, also adding owner reviewers: haraken@chromium.org: Please review changes for histograms dpapad@chromium.org: Please review ...
4 years ago (2016-11-23 23:32:03 UTC) #15
haraken
> mailto:haraken@chromium.org: Please review changes for histograms (I'm allowed to review UseCounter-only changes.) +isherman
4 years ago (2016-11-24 01:40:52 UTC) #17
dpapad
LGTM for chrome/browser/ui/webui/
4 years ago (2016-11-28 18:55:07 UTC) #18
Ilya Sherman
https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml#newcode39665 tools/metrics/histograms/histograms.xml:39665: +<histogram name="OfflinePages.ClearStorageBatchSize"> nit: Please add a units attribute https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml#newcode39687 ...
4 years ago (2016-11-29 02:44:21 UTC) #19
Ilya Sherman
histograms.xml lgtm with the below nits addressed On 2016/11/29 02:44:21, Ilya Sherman wrote: > https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml ...
4 years ago (2016-11-29 02:45:00 UTC) #20
romax
Addressed Ilya's comments and going to merge with tip and start a dryrun. https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml File ...
4 years ago (2016-11-29 19:38:16 UTC) #21
Ilya Sherman
https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml#newcode39665 tools/metrics/histograms/histograms.xml:39665: +<histogram name="OfflinePages.ClearStorageBatchSize"> On 2016/11/29 19:38:16, romax wrote: > On ...
4 years ago (2016-11-29 21:06:29 UTC) #24
romax
Addressed all comments. I'll commit when dry run passes. Thanks for the reviewing! https://codereview.chromium.org/2512073002/diff/80001/tools/metrics/histograms/histograms.xml File ...
4 years ago (2016-11-30 00:24:16 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2512073002/160001
4 years ago (2016-11-30 00:57:01 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: blimp_linux_dbg on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) cast_shell_linux on ...
4 years ago (2016-11-30 02:59:09 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2512073002/160001
4 years ago (2016-11-30 18:35:00 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:160001)
4 years ago (2016-11-30 19:46:37 UTC) #40
commit-bot: I haz the power
4 years ago (2016-11-30 19:49:54 UTC) #42
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/cb27e63bd49fc1069fa4bbcf06ab6b50fd6d71ac
Cr-Commit-Position: refs/heads/master@{#435381}

Powered by Google App Engine
This is Rietveld 408576698