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

Issue 2752263003: Count site data size for important sites (Closed)

Created:
3 years, 9 months ago by dullweber
Modified:
3 years, 7 months ago
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, tfarina, dominickn+watch_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Get the size of local storage and used quota for important sites. BUG=698692 Review-Url: https://codereview.chromium.org/2752263003 Cr-Commit-Position: refs/heads/master@{#472813} Committed: https://chromium.googlesource.com/chromium/src/+/4870daad28213d17ea5bcea9de843a13f0006d67

Patch Set 1 #

Patch Set 2 : fix test #

Patch Set 3 : add localstorage to test case #

Total comments: 7

Patch Set 4 : fix comments #

Patch Set 5 : rebase #

Patch Set 6 : switch to SmallMap #

Total comments: 31

Patch Set 7 : fix comments #

Patch Set 8 : move usage counter to separate file #

Patch Set 9 : rebase #

Total comments: 16

Patch Set 10 : fix comments #

Total comments: 1

Patch Set 11 : rebase #

Patch Set 12 : <utility> newline #

Patch Set 13 : rebase #

Total comments: 32

Patch Set 14 : fix comments #

Patch Set 15 : Use weakptr #

Patch Set 16 : rebase and remove deb file #

Total comments: 2

Patch Set 17 : change runloop order #

Patch Set 18 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -42 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/browsing_data/browsing_data_bridge.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -5 lines 0 comments Download
A chrome/browser/engagement/important_sites_usage_counter.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +82 lines, -0 lines 0 comments Download
A chrome/browser/engagement/important_sites_usage_counter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +112 lines, -0 lines 0 comments Download
A chrome/browser/engagement/important_sites_usage_counter_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +137 lines, -0 lines 0 comments Download
M chrome/browser/engagement/important_sites_util.h View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/engagement/important_sites_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 16 17 5 chunks +19 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +42 lines, -26 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 82 (57 generated)
dullweber
Hi, I added some code to calculate the size of localstorage and quota usage for ...
3 years, 9 months ago (2017-03-24 10:43:05 UTC) #7
dmurph
https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc File chrome/browser/engagement/important_sites_util.cc (right): https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc#newcode440 chrome/browser/engagement/important_sites_util.cc:440: std::map<std::string, ImportantDomainInfo*> site_map; unordered_map should be more suitable here ...
3 years, 8 months ago (2017-03-27 22:22:45 UTC) #12
msramek
On 2017/03/24 10:43:05, dullweber wrote: > Hi, > I added some code to calculate the ...
3 years, 8 months ago (2017-03-28 13:57:39 UTC) #19
dullweber
On 2017/03/28 13:57:39, msramek wrote: > On 2017/03/24 10:43:05, dullweber wrote: > > Hi, > ...
3 years, 8 months ago (2017-03-28 14:03:54 UTC) #20
dullweber
Thanks, I fixed the issues https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc File chrome/browser/engagement/important_sites_util.cc (right): https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc#newcode440 chrome/browser/engagement/important_sites_util.cc:440: std::map<std::string, ImportantDomainInfo*> site_map; On ...
3 years, 8 months ago (2017-03-28 14:06:45 UTC) #21
dmurph
https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc File chrome/browser/engagement/important_sites_util.cc (right): https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc#newcode440 chrome/browser/engagement/important_sites_util.cc:440: std::map<std::string, ImportantDomainInfo*> site_map; On 2017/03/28 14:06:45, dullweber wrote: > ...
3 years, 8 months ago (2017-03-28 21:51:13 UTC) #24
dullweber
On 2017/03/28 21:51:13, dmurph wrote: > https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc > File chrome/browser/engagement/important_sites_util.cc (right): > > https://codereview.chromium.org/2752263003/diff/40001/chrome/browser/engagement/important_sites_util.cc#newcode440 > ...
3 years, 8 months ago (2017-03-29 10:30:38 UTC) #27
dmurph
lgtm
3 years, 8 months ago (2017-03-30 00:33:23 UTC) #30
dullweber
dominickn@chromium.org: Please review changes in chrome/browser/engagement/important_sites_util* I added a method to calculate the size of ...
3 years, 8 months ago (2017-04-07 10:42:51 UTC) #32
dominickn
https://codereview.chromium.org/2752263003/diff/100001/chrome/browser/engagement/important_sites_util.cc File chrome/browser/engagement/important_sites_util.cc (right): https://codereview.chromium.org/2752263003/diff/100001/chrome/browser/engagement/important_sites_util.cc#newcode46 chrome/browser/engagement/important_sites_util.cc:46: using content::BrowserThread; Nit: the other files in engagement/ explicitly ...
3 years, 8 months ago (2017-04-10 05:06:12 UTC) #33
dullweber
Thanks, I fixed the issues you mentioned and moved the class to a separate file. ...
3 years, 8 months ago (2017-04-10 13:29:39 UTC) #40
dominickn
Thanks, this is way nicer! Mostly nits now, though there's also a threading question and ...
3 years, 8 months ago (2017-04-11 00:18:21 UTC) #43
dullweber
Thanks for another round of review. I think passing the vector to a callback is ...
3 years, 8 months ago (2017-04-11 09:01:34 UTC) #48
dominickn
https://codereview.chromium.org/2752263003/diff/140002/chrome/browser/engagement/important_sites_usage_counter.cc File chrome/browser/engagement/important_sites_usage_counter.cc (right): https://codereview.chromium.org/2752263003/diff/140002/chrome/browser/engagement/important_sites_usage_counter.cc#newcode56 chrome/browser/engagement/important_sites_usage_counter.cc:56: content::BrowserThread::PostTask( On 2017/04/11 09:01:34, dullweber wrote: > On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 10:03:52 UTC) #49
dullweber
https://codereview.chromium.org/2752263003/diff/140002/chrome/browser/engagement/important_sites_usage_counter.cc File chrome/browser/engagement/important_sites_usage_counter.cc (right): https://codereview.chromium.org/2752263003/diff/140002/chrome/browser/engagement/important_sites_usage_counter.cc#newcode56 chrome/browser/engagement/important_sites_usage_counter.cc:56: content::BrowserThread::PostTask( On 2017/04/11 10:03:52, dominickn wrote: > On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 11:08:03 UTC) #50
dominickn
Oh, I see, you dispatch using base::Bind there. That makes sense, thanks for bearing with ...
3 years, 8 months ago (2017-04-11 11:16:49 UTC) #51
dullweber
dschuyler@chromium.org: This is a follow up cl for important sites, adding code to count the ...
3 years, 7 months ago (2017-05-03 08:57:53 UTC) #57
dschuyler
chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.* lgtm
3 years, 7 months ago (2017-05-03 21:35:21 UTC) #58
dullweber
bauerb@chromium.org: Please review changes in chrome/browser/android/browsing_data/browsing_data_bridge.cc. I moved kMaxImportantSites to ImportantSitesUtil because I is use ...
3 years, 7 months ago (2017-05-04 10:53:46 UTC) #60
Bernhard Bauer
https://codereview.chromium.org/2752263003/diff/230001/chrome/browser/engagement/important_sites_usage_counter.cc File chrome/browser/engagement/important_sites_usage_counter.cc (right): https://codereview.chromium.org/2752263003/diff/230001/chrome/browser/engagement/important_sites_usage_counter.cc#newcode42 chrome/browser/engagement/important_sites_usage_counter.cc:42: void ImportantSitesUsageCounter::RunAndDestroySelf() { This method doesn't immediately destroy the ...
3 years, 7 months ago (2017-05-04 14:16:46 UTC) #61
dullweber
Thanks, I fixed these issues https://codereview.chromium.org/2752263003/diff/230001/chrome/browser/engagement/important_sites_usage_counter.cc File chrome/browser/engagement/important_sites_usage_counter.cc (right): https://codereview.chromium.org/2752263003/diff/230001/chrome/browser/engagement/important_sites_usage_counter.cc#newcode42 chrome/browser/engagement/important_sites_usage_counter.cc:42: void ImportantSitesUsageCounter::RunAndDestroySelf() { On ...
3 years, 7 months ago (2017-05-05 08:35:28 UTC) #66
Bernhard Bauer
lgtm https://codereview.chromium.org/2752263003/diff/230001/chrome/browser/engagement/important_sites_usage_counter.cc File chrome/browser/engagement/important_sites_usage_counter.cc (right): https://codereview.chromium.org/2752263003/diff/230001/chrome/browser/engagement/important_sites_usage_counter.cc#newcode42 chrome/browser/engagement/important_sites_usage_counter.cc:42: void ImportantSitesUsageCounter::RunAndDestroySelf() { On 2017/05/05 08:35:27, dullweber wrote: ...
3 years, 7 months ago (2017-05-05 09:36:05 UTC) #69
dullweber
https://codereview.chromium.org/2752263003/diff/290001/chrome/browser/engagement/important_sites_usage_counter_unittest.cc File chrome/browser/engagement/important_sites_usage_counter_unittest.cc (right): https://codereview.chromium.org/2752263003/diff/290001/chrome/browser/engagement/important_sites_usage_counter_unittest.cc#newcode71 chrome/browser/engagement/important_sites_usage_counter_unittest.cc:71: if (run_loop_) On 2017/05/05 09:36:05, Bernhard Bauer wrote: > ...
3 years, 7 months ago (2017-05-05 10:51:00 UTC) #72
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/2752263003/330001
3 years, 7 months ago (2017-05-18 14:59:07 UTC) #79
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 15:06:31 UTC) #82
Message was sent while issue was closed.
Committed patchset #18 (id:330001) as
https://chromium.googlesource.com/chromium/src/+/4870daad28213d17ea5bcea9de84...

Powered by Google App Engine
This is Rietveld 408576698