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

Issue 2092663002: Add a counter to calculate the total size of site data. (Closed)

Created:
4 years, 6 months ago by fukino
Modified:
4 years, 5 months ago
Reviewers:
msramek
CC:
chromium-reviews, markusheintz_, msramek+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a counter to calculate the total size of site data. To compute the total size of site data in browsing data, this CL adds following classes. SiteDataSizeCollector: collects size information of site data from storage backends using BrowsingData*Helper. SiteDataCounter: works as a BrowsingDataCounter using the size collector above. BUG=591958 Committed: https://crrev.com/cc2718d95cc02f86c1258d8ef497892e7b346a22 Cr-Commit-Position: refs/heads/master@{#403236}

Patch Set 1 #

Total comments: 11

Patch Set 2 : Add tests and address comments. #

Patch Set 3 : Remove an accidentally added file. #

Total comments: 12

Patch Set 4 : Use FILE_PATH_LITERAL #

Total comments: 6

Patch Set 5 : Address review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+750 lines, -9 lines) Patch
M chrome/browser/browsing_data/mock_browsing_data_appcache_helper.h View 1 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_appcache_helper.cc View 1 2 chunks +24 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_file_system_helper.h View 1 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_file_system_helper.cc View 1 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/browsing_data/mock_browsing_data_service_worker_helper.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/site_data_size_collector.h View 1 2 3 4 1 chunk +113 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/site_data_size_collector.cc View 1 2 3 4 1 chunk +256 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/site_data_size_collector_unittest.cc View 1 2 3 4 1 chunk +332 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
fukino
Hi Martin, I haven't added tests yet, but could you check the current approach? Here ...
4 years, 6 months ago (2016-06-23 05:27:28 UTC) #3
msramek
The approach looks good. I left some comments, and of course, I'll wait for the ...
4 years, 6 months ago (2016-06-23 21:30:35 UTC) #4
msramek
Oh, and I totally forgot... this doesn't support time ranges. As you can see in ...
4 years, 6 months ago (2016-06-24 11:50:52 UTC) #5
fukino
On 2016/06/24 11:50:52, msramek wrote: > Oh, and I totally forgot... this doesn't support time ...
4 years, 5 months ago (2016-06-27 11:54:59 UTC) #6
msramek
On 2016/06/27 11:54:59, fukino wrote: > On 2016/06/24 11:50:52, msramek wrote: > > Oh, and ...
4 years, 5 months ago (2016-06-27 12:03:34 UTC) #7
fukino
On 2016/06/27 12:03:34, msramek wrote: > On 2016/06/27 11:54:59, fukino wrote: > > On 2016/06/24 ...
4 years, 5 months ago (2016-06-27 12:13:09 UTC) #8
fukino
Martin, could you take another look? https://codereview.chromium.org/2092663002/diff/1/chrome/browser/browsing_data/site_data_counter.cc File chrome/browser/browsing_data/site_data_counter.cc (right): https://codereview.chromium.org/2092663002/diff/1/chrome/browser/browsing_data/site_data_counter.cc#newcode23 chrome/browser/browsing_data/site_data_counter.cc:23: weak_ptr_factory_.GetWeakPtr())); On 2016/06/23 ...
4 years, 5 months ago (2016-06-30 09:21:25 UTC) #9
msramek
LGTM after you address all comments. https://codereview.chromium.org/2092663002/diff/1/chrome/browser/browsing_data/site_data_size_collector.cc File chrome/browser/browsing_data/site_data_size_collector.cc (right): https://codereview.chromium.org/2092663002/diff/1/chrome/browser/browsing_data/site_data_size_collector.cc#newcode24 chrome/browser/browsing_data/site_data_size_collector.cc:24: void SiteDataSizeCollector::Fetch(const FetchCallback& ...
4 years, 5 months ago (2016-06-30 13:58:11 UTC) #10
fukino
Thank you! https://codereview.chromium.org/2092663002/diff/40001/chrome/browser/browsing_data/site_data_size_collector.cc File chrome/browser/browsing_data/site_data_size_collector.cc (right): https://codereview.chromium.org/2092663002/diff/40001/chrome/browser/browsing_data/site_data_size_collector.cc#newcode127 chrome/browser/browsing_data/site_data_size_collector.cc:127: int64_t size = 0; On 2016/06/30 13:58:11, ...
4 years, 5 months ago (2016-06-30 16:16:13 UTC) #11
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/2092663002/80001
4 years, 5 months ago (2016-06-30 18:28:18 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-06-30 19:05:10 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 19:08:26 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/cc2718d95cc02f86c1258d8ef497892e7b346a22
Cr-Commit-Position: refs/heads/master@{#403236}

Powered by Google App Engine
This is Rietveld 408576698