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

Issue 2326523003: Connect Mojo budget_service to BudgetManager implementation of Reserve. (Closed)

Created:
4 years, 3 months ago by harkness
Modified:
4 years, 3 months ago
Reviewers:
Peter Beverloo
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Connect Mojo budget_service to BudgetManager implementation of Reserve. This connects the Mojo service to the pre-existing implementation of Reserve. It also updates the Reserve implementation to track both whether the origin had enough budget to spend as well as whether there was an error in reading or writing the database. Tests were updated to reflect the new parameters, but no new tests were needed. BUG=617971 Committed: https://crrev.com/0f9724adff9b52cbf22a2c7f7fdc579c0aeb13b8 Cr-Commit-Position: refs/heads/master@{#418244}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased and fixed nits, also made reservation_map based on origin rather than string. #

Patch Set 3 : Fixed issue dependency. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -52 lines) Patch
M chrome/browser/budget_service/budget_database.h View 1 5 chunks +18 lines, -14 lines 0 comments Download
M chrome/browser/budget_service/budget_database.cc View 1 7 chunks +26 lines, -13 lines 0 comments Download
M chrome/browser/budget_service/budget_database_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/budget_service/budget_manager.h View 1 3 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/budget_service/budget_manager.cc View 1 3 chunks +26 lines, -16 lines 0 comments Download
M chrome/browser/budget_service/budget_manager_unittest.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/budget_service/budget_service_impl.cc View 1 1 chunk +11 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
harkness
I did seriously consider changing the Mojo enum to include values for the Reserve success ...
4 years, 3 months ago (2016-09-08 15:35:33 UTC) #2
Peter Beverloo
lgtm % comments https://codereview.chromium.org/2326523003/diff/1/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2326523003/diff/1/chrome/browser/budget_service/budget_database.cc#newcode104 chrome/browser/budget_service/budget_database.cc:104: // If the database read failed, ...
4 years, 3 months ago (2016-09-08 17:16:06 UTC) #3
harkness
https://codereview.chromium.org/2326523003/diff/1/chrome/browser/budget_service/budget_database.cc File chrome/browser/budget_service/budget_database.cc (right): https://codereview.chromium.org/2326523003/diff/1/chrome/browser/budget_service/budget_database.cc#newcode104 chrome/browser/budget_service/budget_database.cc:104: // If the database read failed, or there's nothing ...
4 years, 3 months ago (2016-09-13 13:41:29 UTC) #4
Peter Beverloo
still lgtm, thanks!
4 years, 3 months ago (2016-09-13 14:28:19 UTC) #11
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/2326523003/40001
4 years, 3 months ago (2016-09-13 14:29:03 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-13 14:43:52 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 14:47:18 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0f9724adff9b52cbf22a2c7f7fdc579c0aeb13b8
Cr-Commit-Position: refs/heads/master@{#418244}

Powered by Google App Engine
This is Rietveld 408576698