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

Issue 1986673002: [Offline Pages] Updated clearing logic in storage manager. (Closed)

Created:
4 years, 7 months ago by romax
Modified:
4 years, 7 months ago
Reviewers:
fgorski
CC:
chromium-reviews, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, blundell+watchlist_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] Updated clearing logic in storage manager. Updated clearing logic in storage manager, adapted to new changes from archive manager. Also removed the storage manager related test in model_unittest, while adding some tests in storage_manager_unittest. BUG=609357 Committed: https://crrev.com/13aa507d5e0488ebbbe5e4f8afd0942e5435689b Cr-Commit-Position: refs/heads/master@{#395384}

Patch Set 1 #

Patch Set 2 : fixing trybots. #

Total comments: 19

Patch Set 3 : removed PrefService, using new clearing logic and adapted changes of archive manager. #

Patch Set 4 : Adapt archiver changes, minor fixes and tests. #

Patch Set 5 : Refactored to short circuit earlier if no need to clear. #

Total comments: 48

Patch Set 6 : Addressing comments. #

Total comments: 6

Patch Set 7 : more comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+336 lines, -74 lines) Patch
M components/offline_pages/archive_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M components/offline_pages/archive_manager.cc View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager.h View 1 2 3 4 5 6 3 chunks +55 lines, -15 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager.cc View 1 2 3 4 5 6 4 chunks +94 lines, -26 lines 0 comments Download
M components/offline_pages/offline_page_storage_manager_unittest.cc View 1 2 3 4 5 4 chunks +179 lines, -31 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (6 generated)
romax
Hi Filip, please take a look if I'm doing it right in the direction, so ...
4 years, 7 months ago (2016-05-17 03:18:14 UTC) #2
fgorski
https://codereview.chromium.org/1986673002/diff/20001/components/offline_pages.gypi File components/offline_pages.gypi (right): https://codereview.chromium.org/1986673002/diff/20001/components/offline_pages.gypi#newcode23 components/offline_pages.gypi:23: 'user_prefs', Why is this not in sync with GN? ...
4 years, 7 months ago (2016-05-17 05:33:29 UTC) #3
romax
PTAL, removed PrefService, changed to the discussed logic, adapted changes related with ArchiveManager https://codereview.chromium.org/1986673002/diff/20001/components/offline_pages.gypi File ...
4 years, 7 months ago (2016-05-18 02:36:20 UTC) #4
romax
updated CL. PTAL
4 years, 7 months ago (2016-05-19 00:55:04 UTC) #6
romax
Refactored storage manager so that we can know there's no need to clear storage earlier ...
4 years, 7 months ago (2016-05-19 02:00:07 UTC) #7
fgorski
https://codereview.chromium.org/1986673002/diff/80001/components/offline_pages/archive_manager.cc File components/offline_pages/archive_manager.cc (right): https://codereview.chromium.org/1986673002/diff/80001/components/offline_pages/archive_manager.cc#newcode122 components/offline_pages/archive_manager.cc:122: ArchiveManager::ArchiveManager() {} constructors go above methods. https://codereview.chromium.org/1986673002/diff/80001/components/offline_pages/offline_page_storage_manager.cc File components/offline_pages/offline_page_storage_manager.cc ...
4 years, 7 months ago (2016-05-19 04:14:23 UTC) #8
romax
Addressed comments, PTAL. https://codereview.chromium.org/1986673002/diff/80001/components/offline_pages/archive_manager.cc File components/offline_pages/archive_manager.cc (right): https://codereview.chromium.org/1986673002/diff/80001/components/offline_pages/archive_manager.cc#newcode122 components/offline_pages/archive_manager.cc:122: ArchiveManager::ArchiveManager() {} On 2016/05/19 04:14:22, fgorski ...
4 years, 7 months ago (2016-05-19 18:34:44 UTC) #9
fgorski
lgtm with comments https://codereview.chromium.org/1986673002/diff/100001/components/offline_pages/offline_page_storage_manager.cc File components/offline_pages/offline_page_storage_manager.cc (right): https://codereview.chromium.org/1986673002/diff/100001/components/offline_pages/offline_page_storage_manager.cc#newcode7 components/offline_pages/offline_page_storage_manager.cc:7: #include <stdint.h> I just noticed that ...
4 years, 7 months ago (2016-05-19 20:19:55 UTC) #10
romax
more comments and commit ready. https://codereview.chromium.org/1986673002/diff/100001/components/offline_pages/offline_page_storage_manager.cc File components/offline_pages/offline_page_storage_manager.cc (right): https://codereview.chromium.org/1986673002/diff/100001/components/offline_pages/offline_page_storage_manager.cc#newcode7 components/offline_pages/offline_page_storage_manager.cc:7: #include <stdint.h> On 2016/05/19 ...
4 years, 7 months ago (2016-05-19 20:47:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1986673002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1986673002/120001
4 years, 7 months ago (2016-05-23 18:17:28 UTC) #14
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 7 months ago (2016-05-23 19:17:32 UTC) #16
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 19:18:29 UTC) #18
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/13aa507d5e0488ebbbe5e4f8afd0942e5435689b
Cr-Commit-Position: refs/heads/master@{#395384}

Powered by Google App Engine
This is Rietveld 408576698