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

Issue 2173833002: Expand the functionality of the BudgetDatabase. (Closed)

Created:
4 years, 5 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@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expand the functionality of the BudgetDatabase. Adds a GetBudgetDetails call which returns full information about the expected budget at future times. Also adds a cache layer so that multiple GetBudgetDetails calls can't hammer the filesystem I/O. BUG=617971 Committed: https://crrev.com/804b612a628958aef2f1f21fdda3c56c827cb2cb Cr-Commit-Position: refs/heads/master@{#408104}

Patch Set 1 #

Patch Set 2 : Reverted change I decided against. #

Total comments: 33

Patch Set 3 : Code review comments #

Total comments: 28

Patch Set 4 : More code review cleanup #

Total comments: 4

Patch Set 5 : Final cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+185 lines, -13 lines) Patch
M chrome/browser/budget_service/budget.proto View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/budget_service/budget_database.h View 1 2 3 4 chunks +34 lines, -0 lines 0 comments Download
M chrome/browser/budget_service/budget_database.cc View 1 2 3 4 4 chunks +88 lines, -4 lines 0 comments Download
M chrome/browser/budget_service/budget_database_unittest.cc View 1 2 3 4 4 chunks +61 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
harkness
4 years, 5 months ago (2016-07-22 13:23:13 UTC) #2
Peter Beverloo
To what extend will BudgetDatabase have to follow the API, i.e. how will BudgetService be ...
4 years, 5 months ago (2016-07-22 16:14:52 UTC) #3
harkness
https://codereview.chromium.org/2173833002/diff/20001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2173833002/diff/20001/chrome/browser/budget_service/budget_database.cc#newcode34 chrome/browser/budget_service/budget_database.cc:34: // TODO(harkness): Either remove this method or add caching. ...
4 years, 4 months ago (2016-07-26 16:42:08 UTC) #4
Peter Beverloo
This looks fine, modulo minor nits. Sorry that we care about these things— let's get ...
4 years, 4 months ago (2016-07-26 17:26:21 UTC) #5
harkness
https://codereview.chromium.org/2173833002/diff/20001/chrome/browser/budget_service/budget_database.h File chrome/browser/budget_service/budget_database.h (right): https://codereview.chromium.org/2173833002/diff/20001/chrome/browser/budget_service/budget_database.h#newcode32 chrome/browser/budget_service/budget_database.h:32: typedef std::list<std::pair<double, double>> BudgetChunks; On 2016/07/26 17:26:20, Peter Beverloo ...
4 years, 4 months ago (2016-07-27 10:59:03 UTC) #6
Peter Beverloo
lgtm https://codereview.chromium.org/2173833002/diff/40001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2173833002/diff/40001/chrome/browser/budget_service/budget_database.cc#newcode138 chrome/browser/budget_service/budget_database.cc:138: for (BudgetChunks::const_reverse_iterator iter = info.second.rbegin(); On 2016/07/27 10:59:02, ...
4 years, 4 months ago (2016-07-27 11:21:40 UTC) #7
harkness
https://codereview.chromium.org/2173833002/diff/60001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2173833002/diff/60001/chrome/browser/budget_service/budget_database.cc#newcode143 chrome/browser/budget_service/budget_database.cc:143: callback.Run(success, info.first, expectation); On 2016/07/27 11:21:40, Peter Beverloo wrote: ...
4 years, 4 months ago (2016-07-27 12:23:41 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/2173833002/80001
4 years, 4 months ago (2016-07-27 12:24:14 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-27 12:53:46 UTC) #12
commit-bot: I haz the power
4 years, 4 months ago (2016-07-27 12:55:52 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/804b612a628958aef2f1f21fdda3c56c827cb2cb
Cr-Commit-Position: refs/heads/master@{#408104}

Powered by Google App Engine
This is Rietveld 408576698