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

Issue 1889513004: Make BackgroundBudgetService a KeyedService (Closed)

Created:
4 years, 8 months ago by harkness
Modified:
4 years, 8 months ago
CC:
chromium-reviews, Peter Beverloo, mvanouwerkerk+watch_chromium.org, johnme+watch_chromium.org, harkness+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@ses_integration
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

This code converts the previously static class of BackgroundBudgetService to a KeyedService, which is tied to the lifetime of the Profile. This immediately gives dependency tracking via the factory dependency, and allows better test writing going forward. This is part of a many-part project to add a framework for service workers to perform background processing on behalf of the user in response to a push message but without always showing a visible notification to the user. BUG=602244 Committed: https://crrev.com/0c1cff9f04f8884ff43d6be2ee003618c80a9db5 Cr-Commit-Position: refs/heads/master@{#387587}

Patch Set 1 #

Total comments: 19

Patch Set 2 : Integrating code review comments #

Patch Set 3 : More code review comments #

Patch Set 4 : Apply diffs to master branch to remove SES dependency #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -23 lines) Patch
M chrome/browser/push_messaging/background_budget_service.h View 1 2 3 2 chunks +9 lines, -7 lines 0 comments Download
M chrome/browser/push_messaging/background_budget_service.cc View 1 2 3 1 chunk +9 lines, -7 lines 0 comments Download
A chrome/browser/push_messaging/background_budget_service_factory.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/push_messaging/background_budget_service_factory.cc View 1 1 chunk +39 lines, -0 lines 1 comment Download
M chrome/browser/push_messaging/background_budget_service_unittest.cc View 1 2 3 4 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_notification_manager.cc View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/push_messaging/push_messaging_service_factory.cc View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
harkness
4 years, 8 months ago (2016-04-14 13:29:09 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889513004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889513004/1
4 years, 8 months ago (2016-04-14 13:55:55 UTC) #4
Michael van Ouwerkerk
Please update the CL description and subject to highlight what _this_ CL is about. Some ...
4 years, 8 months ago (2016-04-14 14:36:31 UTC) #5
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-14 14:47:22 UTC) #7
Peter Beverloo
https://codereview.chromium.org/1889513004/diff/1/chrome/browser/push_messaging/background_budget_service.h File chrome/browser/push_messaging/background_budget_service.h (right): https://codereview.chromium.org/1889513004/diff/1/chrome/browser/push_messaging/background_budget_service.h#newcode25 chrome/browser/push_messaging/background_budget_service.h:25: explicit BackgroundBudgetService(Profile* profile); nit: virtual destructor https://codereview.chromium.org/1889513004/diff/1/chrome/browser/push_messaging/background_budget_service_factory.cc File chrome/browser/push_messaging/background_budget_service_factory.cc ...
4 years, 8 months ago (2016-04-14 16:01:18 UTC) #9
harkness
I renamed the issue; I should have done that before I sent it out. I ...
4 years, 8 months ago (2016-04-14 17:44:19 UTC) #12
harkness
I created a new branch with the KeyedService changes and without the SES changes, so ...
4 years, 8 months ago (2016-04-15 11:53:27 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889513004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889513004/60001
4 years, 8 months ago (2016-04-15 12:22:09 UTC) #15
Peter Beverloo
\o/ lgtm % comment, but please get Michael's stamp too https://codereview.chromium.org/1889513004/diff/60001/chrome/browser/push_messaging/background_budget_service_factory.cc File chrome/browser/push_messaging/background_budget_service_factory.cc (right): https://codereview.chromium.org/1889513004/diff/60001/chrome/browser/push_messaging/background_budget_service_factory.cc#newcode17 ...
4 years, 8 months ago (2016-04-15 12:22:24 UTC) #16
Michael van Ouwerkerk
nice, lgtm
4 years, 8 months ago (2016-04-15 12:34:02 UTC) #17
Michael van Ouwerkerk
nice, lgtm
4 years, 8 months ago (2016-04-15 12:34:04 UTC) #18
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-15 13:17:14 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1889513004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1889513004/60001
4 years, 8 months ago (2016-04-15 13:19:16 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 8 months ago (2016-04-15 13:24:38 UTC) #24
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 13:26:07 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/0c1cff9f04f8884ff43d6be2ee003618c80a9db5
Cr-Commit-Position: refs/heads/master@{#387587}

Powered by Google App Engine
This is Rietveld 408576698