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

Issue 2335913002: Add daily quota for precache (Closed)

Created:
4 years, 3 months ago by Raj
Modified:
4 years, 3 months ago
Reviewers:
sclittle
CC:
chromium-reviews, wifiprefetch-reviews_google.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add daily quota for precache BUG=638420 Committed: https://crrev.com/f4f0b2a973b3940ffe34af8cd3252d07d266fd01 Cr-Commit-Position: refs/heads/master@{#420745}

Patch Set 1 #

Patch Set 2 : minor fix #

Total comments: 4

Patch Set 3 : Added quota proto #

Total comments: 30

Patch Set 4 : Addressed sclittle comments #

Total comments: 8

Patch Set 5 : Addressed sclittle@ comments #

Total comments: 2

Patch Set 6 : Addressed sclittle@ comments #

Total comments: 8

Patch Set 7 : Addressed nits #

Patch Set 8 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+267 lines, -38 lines) Patch
M components/precache/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/precache/core/precache_database.h View 1 chunk +4 lines, -0 lines 0 comments Download
M components/precache/core/precache_database.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M components/precache/core/precache_fetcher.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -0 lines 0 comments Download
M components/precache/core/precache_fetcher.cc View 1 2 3 4 5 6 7 6 chunks +63 lines, -5 lines 0 comments Download
M components/precache/core/precache_fetcher_unittest.cc View 1 2 3 4 5 6 7 1 chunk +84 lines, -0 lines 0 comments Download
M components/precache/core/precache_session_table.h View 1 2 3 4 4 chunks +13 lines, -8 lines 0 comments Download
M components/precache/core/precache_session_table.cc View 1 2 3 2 chunks +42 lines, -25 lines 0 comments Download
M components/precache/core/precache_session_table_unittest.cc View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M components/precache/core/proto/precache.proto View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
A components/precache/core/proto/quota.proto View 1 2 3 4 5 6 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (22 generated)
Raj
4 years, 3 months ago (2016-09-12 22:59:12 UTC) #2
sclittle
There's a bunch of references here to a "quota.proto" file that doesn't seem to exist; ...
4 years, 3 months ago (2016-09-14 16:23:28 UTC) #3
Raj
Added the proto file. https://codereview.chromium.org/2335913002/diff/2/components/precache/core/BUILD.gn File components/precache/core/BUILD.gn (right): https://codereview.chromium.org/2335913002/diff/2/components/precache/core/BUILD.gn#newcode57 components/precache/core/BUILD.gn:57: "proto/quota.proto", On 2016/09/14 16:23:28, sclittle ...
4 years, 3 months ago (2016-09-14 16:44:35 UTC) #4
sclittle
https://codereview.chromium.org/2335913002/diff/30001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/30001/components/precache/core/precache_fetcher.cc#newcode648 components/precache/core/precache_fetcher.cc:648: quota_ = std::move(quota); nit: There's no point in std::move-ing ...
4 years, 3 months ago (2016-09-14 17:59:19 UTC) #5
Raj
ptal https://codereview.chromium.org/2335913002/diff/30001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/30001/components/precache/core/precache_fetcher.cc#newcode648 components/precache/core/precache_fetcher.cc:648: quota_ = std::move(quota); On 2016/09/14 17:59:15, sclittle wrote: ...
4 years, 3 months ago (2016-09-14 20:01:51 UTC) #6
sclittle
https://codereview.chromium.org/2335913002/diff/50001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/50001/components/precache/core/precache_fetcher.cc#newcode520 components/precache/core/precache_fetcher.cc:520: DCHECK(base::Time::FromInternalValue(quota_.expiry_time()) > This DCHECK will not hold if the ...
4 years, 3 months ago (2016-09-21 20:07:24 UTC) #7
Raj
https://codereview.chromium.org/2335913002/diff/50001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/50001/components/precache/core/precache_fetcher.cc#newcode520 components/precache/core/precache_fetcher.cc:520: DCHECK(base::Time::FromInternalValue(quota_.expiry_time()) > On 2016/09/21 20:07:24, sclittle wrote: > This ...
4 years, 3 months ago (2016-09-22 18:34:34 UTC) #9
sclittle
https://codereview.chromium.org/2335913002/diff/90001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/90001/components/precache/core/precache_fetcher.cc#newcode661 components/precache/core/precache_fetcher.cc:661: quota_.set_expiry_hours(24); You might not need to store expiry_hours in ...
4 years, 3 months ago (2016-09-22 20:02:27 UTC) #10
Raj
https://codereview.chromium.org/2335913002/diff/90001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/90001/components/precache/core/precache_fetcher.cc#newcode661 components/precache/core/precache_fetcher.cc:661: quota_.set_expiry_hours(24); On 2016/09/22 20:02:27, sclittle wrote: > You might ...
4 years, 3 months ago (2016-09-22 21:09:10 UTC) #11
sclittle
lgtm % nits https://codereview.chromium.org/2335913002/diff/110001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/110001/components/precache/core/precache_fetcher.cc#newcode220 components/precache/core/precache_fetcher.cc:220: // Quota expires by the end ...
4 years, 3 months ago (2016-09-22 21:36:56 UTC) #12
Raj
https://codereview.chromium.org/2335913002/diff/110001/components/precache/core/precache_fetcher.cc File components/precache/core/precache_fetcher.cc (right): https://codereview.chromium.org/2335913002/diff/110001/components/precache/core/precache_fetcher.cc#newcode220 components/precache/core/precache_fetcher.cc:220: // Quota expires by the end of the day ...
4 years, 3 months ago (2016-09-23 01:32:41 UTC) #15
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/2335913002/150001
4 years, 3 months ago (2016-09-23 01:33:02 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/73889) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 3 months ago (2016-09-23 01:35:21 UTC) #18
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/2335913002/170001
4 years, 3 months ago (2016-09-23 05:38:04 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/74297)
4 years, 3 months ago (2016-09-23 05:49:23 UTC) #23
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/2335913002/210001
4 years, 3 months ago (2016-09-23 20:34:22 UTC) #37
commit-bot: I haz the power
Committed patchset #8 (id:210001)
4 years, 3 months ago (2016-09-23 22:36:39 UTC) #38
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 22:39:36 UTC) #40
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/f4f0b2a973b3940ffe34af8cd3252d07d266fd01
Cr-Commit-Position: refs/heads/master@{#420745}

Powered by Google App Engine
This is Rietveld 408576698