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

Issue 2272563005: Start plumbing connections from the BudgetManager to the BudgetDatabase (Closed)

Created:
4 years, 4 months ago by harkness
Modified:
4 years, 3 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

Start plumbing connections from the BudgetManager to the BudgetDatabase This adds the BudgetDatabase as a member of the manager, paving the way for the switch from using the prefs to store budget to using the proto database. This also adds Reserve and Consume entrypoints on the BudgetManager. Reserve is the entrypoint for the Mojo service to enable Javascript to purchase reservations with budget. Consume is the entrypoint for clients of the Manager to determine if an origin should be allowed an action, either because it has a reservation or because it has enough budget to cover the cost. BUG=617971 Committed: https://crrev.com/c3fb045f4ff19a65873bbcce47ffca0dd1a3b570 Cr-Commit-Position: refs/heads/master@{#416260}

Patch Set 1 #

Patch Set 2 : Added SyncCache step in BudgetDatabase and cleaned up lots of methods #

Patch Set 3 : Updated budget_database_unittests #

Patch Set 4 : Rebase and remove BudgetManager::CostType references #

Total comments: 12

Patch Set 5 : Code review cleanup #

Patch Set 6 : Fix the task runner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+325 lines, -273 lines) Patch
M chrome/browser/budget_service/budget_database.h View 1 2 5 chunks +27 lines, -23 lines 0 comments Download
M chrome/browser/budget_service/budget_database.cc View 1 2 3 4 10 chunks +155 lines, -129 lines 0 comments Download
M chrome/browser/budget_service/budget_database_unittest.cc View 1 2 3 4 9 chunks +30 lines, -117 lines 0 comments Download
M chrome/browser/budget_service/budget_manager.h View 1 2 3 4 chunks +28 lines, -0 lines 0 comments Download
M chrome/browser/budget_service/budget_manager.cc View 1 2 3 4 5 3 chunks +61 lines, -3 lines 0 comments Download
M chrome/browser/budget_service/budget_manager_factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/budget_service/budget_manager_unittest.cc View 1 2 3 2 chunks +23 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (12 generated)
harkness
First, sorry that there are a lot of lines of diffs. By the time I ...
4 years, 4 months ago (2016-08-24 21:56:33 UTC) #2
Peter Beverloo
lgtm % comments https://codereview.chromium.org/2272563005/diff/60001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2272563005/diff/60001/chrome/browser/budget_service/budget_database.cc#newcode63 chrome/browser/budget_service/budget_database.cc:63: // First, synchronize the cache. nit: ...
4 years, 3 months ago (2016-08-25 15:31:19 UTC) #3
harkness
https://codereview.chromium.org/2272563005/diff/60001/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2272563005/diff/60001/chrome/browser/budget_service/budget_database.cc#newcode63 chrome/browser/budget_service/budget_database.cc:63: // First, synchronize the cache. On 2016/08/25 15:31:19, Peter ...
4 years, 3 months ago (2016-08-25 16:36:13 UTC) #4
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/2272563005/100001
4 years, 3 months ago (2016-09-02 14:05:35 UTC) #15
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-09-02 14:09:00 UTC) #16
commit-bot: I haz the power
4 years, 3 months ago (2016-09-02 14:10:38 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/c3fb045f4ff19a65873bbcce47ffca0dd1a3b570
Cr-Commit-Position: refs/heads/master@{#416260}

Powered by Google App Engine
This is Rietveld 408576698