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

Issue 1993953002: [Offline pages] Adding expiration capability to OfflinePageModel (Closed)

Created:
4 years, 7 months ago by fgorski
Modified:
4 years, 7 months ago
Reviewers:
bburns, romax, 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] Adding expiration capability to OfflinePageModel * Adds expiration_time to offline page item * Adds capability to expire pages to the model * Updates both stores and tests with the expiration_time BUG=605615 Committed: https://crrev.com/48904d1cdbc4f70fd961efdc69199897be8cad84 Cr-Commit-Position: refs/heads/master@{#395638}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 16

Patch Set 3 : Addressing feedback #

Total comments: 14

Patch Set 4 : Addressing feedback #

Total comments: 2

Patch Set 5 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -3 lines) Patch
M components/offline_pages/offline_page_item.h View 2 chunks +5 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_item.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_impl_unittest.cc View 1 2 3 4 5 chunks +10 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_metadata_store_sql.cc View 1 2 3 4 5 chunks +9 lines, -3 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 2 1 chunk +35 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (4 generated)
fgorski
PTAL bburns for SQL jianli for general idea romax for things needed by storage manager.
4 years, 7 months ago (2016-05-18 22:59:45 UTC) #2
jianli
https://codereview.chromium.org/1993953002/diff/20001/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/1993953002/diff/20001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc#newcode197 components/offline_pages/offline_page_metadata_store_impl_unittest.cc:197: EXPECT_EQ(offline_page.expiration_time, Please set an expiration time before calling AddOrUpdateOfflinePage. ...
4 years, 7 months ago (2016-05-19 20:39:54 UTC) #3
fgorski
Updated and tested. https://codereview.chromium.org/1993953002/diff/20001/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/1993953002/diff/20001/components/offline_pages/offline_page_metadata_store_impl_unittest.cc#newcode197 components/offline_pages/offline_page_metadata_store_impl_unittest.cc:197: EXPECT_EQ(offline_page.expiration_time, On 2016/05/19 20:39:54, jianli wrote: ...
4 years, 7 months ago (2016-05-20 17:54:23 UTC) #4
bburns
generally looks good, some small nits. https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_metadata_store_impl.cc File components/offline_pages/offline_page_metadata_store_impl.cc (right): https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_metadata_store_impl.cc#newcode101 components/offline_pages/offline_page_metadata_store_impl.cc:101: if (item_proto.has_expiration_time()) { ...
4 years, 7 months ago (2016-05-20 18:23:27 UTC) #5
bburns
https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_metadata_store_sql.cc File components/offline_pages/offline_page_metadata_store_sql.cc (right): https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_metadata_store_sql.cc#newcode46 components/offline_pages/offline_page_metadata_store_sql.cc:46: " expiration_time INTEGER NOT NULL" One of the SQL ...
4 years, 7 months ago (2016-05-20 18:24:53 UTC) #6
romax
I think all looks good, but I have 2 questions. https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_item.cc File components/offline_pages/offline_page_item.cc (right): https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_item.cc#newcode72 ...
4 years, 7 months ago (2016-05-20 19:05:00 UTC) #7
fgorski
PTAL https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_item.cc File components/offline_pages/offline_page_item.cc (right): https://codereview.chromium.org/1993953002/diff/40001/components/offline_pages/offline_page_item.cc#newcode72 components/offline_pages/offline_page_item.cc:72: bool OfflinePageItem::IsExpired() const { On 2016/05/20 19:05:00, romax ...
4 years, 7 months ago (2016-05-20 20:54:54 UTC) #8
jianli
lgtm
4 years, 7 months ago (2016-05-20 20:58:56 UTC) #9
romax
lgtm
4 years, 7 months ago (2016-05-20 21:31:11 UTC) #10
bburns
lgtm. https://codereview.chromium.org/1993953002/diff/60001/components/offline_pages/offline_page_model.cc File components/offline_pages/offline_page_model.cc (right): https://codereview.chromium.org/1993953002/diff/60001/components/offline_pages/offline_page_model.cc#newcode523 components/offline_pages/offline_page_model.cc:523: weak_ptr_factory_.GetWeakPtr(), offline_id, nit: one parameter per line.
4 years, 7 months ago (2016-05-23 16:50:16 UTC) #11
fgorski
https://codereview.chromium.org/1993953002/diff/60001/components/offline_pages/offline_page_model.cc File components/offline_pages/offline_page_model.cc (right): https://codereview.chromium.org/1993953002/diff/60001/components/offline_pages/offline_page_model.cc#newcode523 components/offline_pages/offline_page_model.cc:523: weak_ptr_factory_.GetWeakPtr(), offline_id, On 2016/05/23 16:50:16, bburns wrote: > nit: ...
4 years, 7 months ago (2016-05-23 17:50:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1993953002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1993953002/80001
4 years, 7 months ago (2016-05-24 16:45:39 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-24 17:56:49 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-24 17:58:34 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/48904d1cdbc4f70fd961efdc69199897be8cad84
Cr-Commit-Position: refs/heads/master@{#395638}

Powered by Google App Engine
This is Rietveld 408576698