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

Issue 2199763002: Add in expiring budget (Closed)

Created:
4 years, 4 months ago by harkness
Modified:
4 years, 4 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@budget_database
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add in expiring budget Before returning budget chunks to the user or writing chunks to the store, remove any chunks that have expired. BUG=617971 Committed: https://crrev.com/5186e6d82af00c6c3381c552af31e2e7b132f067 Cr-Commit-Position: refs/heads/master@{#410708}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Converted to base::Time return and other code review changes #

Total comments: 9

Patch Set 3 : Added IsCached and tests, moved the Internal to time::Base conversion #

Total comments: 1

Patch Set 4 : const IsCache #

Patch Set 5 : rebased #

Patch Set 6 : full rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -59 lines) Patch
M chrome/browser/budget_service/budget_database.h View 1 2 3 5 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/budget_service/budget_database.cc View 1 2 3 4 4 chunks +80 lines, -51 lines 0 comments Download
M chrome/browser/budget_service/budget_database_unittest.cc View 1 2 3 chunks +33 lines, -5 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 25 (12 generated)
harkness
https://codereview.chromium.org/2199763002/diff/1/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (left): https://codereview.chromium.org/2199763002/diff/1/chrome/browser/budget_service/budget_database.cc#oldcode86 chrome/browser/budget_service/budget_database.cc:86: void BudgetDatabase::WriteCachedValuesToDatabase( This just moved to the bottom of ...
4 years, 4 months ago (2016-08-01 09:49:07 UTC) #3
Peter Beverloo
https://codereview.chromium.org/2199763002/diff/1/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2199763002/diff/1/chrome/browser/budget_service/budget_database.cc#newcode144 chrome/browser/budget_service/budget_database.cc:144: std::make_pair(total, clock_->Now().ToInternalValue())); Sorry that I missed this before- the ...
4 years, 4 months ago (2016-08-01 17:35:28 UTC) #4
harkness
https://codereview.chromium.org/2199763002/diff/1/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2199763002/diff/1/chrome/browser/budget_service/budget_database.cc#newcode144 chrome/browser/budget_service/budget_database.cc:144: std::make_pair(total, clock_->Now().ToInternalValue())); On 2016/08/01 17:35:28, Peter Beverloo wrote: > ...
4 years, 4 months ago (2016-08-08 14:42:43 UTC) #5
Peter Beverloo
https://codereview.chromium.org/2199763002/diff/20001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2199763002/diff/20001/chrome/browser/budget_service/budget_database.cc#newcode192 chrome/browser/budget_service/budget_database.cc:192: double now = clock_->Now().ToInternalValue(); Supposedly we'd like to change ...
4 years, 4 months ago (2016-08-08 15:02:55 UTC) #6
harkness
https://codereview.chromium.org/2199763002/diff/20001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2199763002/diff/20001/chrome/browser/budget_service/budget_database.cc#newcode192 chrome/browser/budget_service/budget_database.cc:192: double now = clock_->Now().ToInternalValue(); On 2016/08/08 15:02:55, Peter Beverloo ...
4 years, 4 months ago (2016-08-09 12:57:40 UTC) #7
Peter Beverloo
lgtm https://codereview.chromium.org/2199763002/diff/20001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2199763002/diff/20001/chrome/browser/budget_service/budget_database.cc#newcode204 chrome/browser/budget_service/budget_database.cc:204: budget_map_.erase(origin.spec()); On 2016/08/09 12:57:40, harkness wrote: > On ...
4 years, 4 months ago (2016-08-09 13:12:42 UTC) #8
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/2199763002/60001
4 years, 4 months ago (2016-08-09 14:09:16 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/180339) linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-09 14:11:32 UTC) #13
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/2199763002/80001
4 years, 4 months ago (2016-08-09 14:20:24 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/243529) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-09 14:22:30 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/2199763002/100001
4 years, 4 months ago (2016-08-09 15:50:50 UTC) #21
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 4 months ago (2016-08-09 16:54:35 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-09 16:56:22 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5186e6d82af00c6c3381c552af31e2e7b132f067
Cr-Commit-Position: refs/heads/master@{#410708}

Powered by Google App Engine
This is Rietveld 408576698