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

Issue 1725883002: Add KeepAliveStateObserver, add the Restart option (Closed)

Created:
4 years, 10 months ago by dgn
Modified:
4 years, 9 months ago
Reviewers:
Bernhard Bauer, sky
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@KeepAlive
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add KeepAliveStateObserver, that allows clients to get notified of state changes in the KeepAliveRegistry. The first supported option is KeepAliveRestartOption. This CL does not add any observer to act on that yet. BUG=587926, 585080 Committed: https://crrev.com/3563ecaf39e0c08836a17743d5233de1e0e7b6f0 Cr-Commit-Position: refs/heads/master@{#380174}

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Total comments: 19

Patch Set 3 : Rebase and address comments #

Patch Set 4 : Remove log #

Patch Set 5 : Rebase on master, remove KeepAliveState #

Patch Set 6 : #

Total comments: 18

Patch Set 7 : Address comments #

Total comments: 2

Patch Set 8 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+268 lines, -40 lines) Patch
M chrome/browser/background/background_mode_manager.cc View 1 2 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/lifetime/keep_alive_registry.h View 1 2 3 4 5 6 7 2 chunks +29 lines, -3 lines 0 comments Download
M chrome/browser/lifetime/keep_alive_registry.cc View 1 2 3 4 5 6 3 chunks +84 lines, -7 lines 0 comments Download
M chrome/browser/lifetime/keep_alive_registry_unittest.cc View 1 2 3 4 5 6 1 chunk +80 lines, -15 lines 0 comments Download
A chrome/browser/lifetime/keep_alive_state_observer.h View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/keep_alive_types.h View 1 2 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/lifetime/keep_alive_types.cc View 1 2 3 4 5 2 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/lifetime/scoped_keep_alive.h View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/lifetime/scoped_keep_alive.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/app_list/app_list_service_views.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/app_list_shower_views.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/app_list/profile_loader.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/apps/chrome_app_delegate.cc View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/panels/panel_view.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/profiles/user_manager_view.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
dgn
PTAL: TBD: tests, doc, update options in ScopedKeepAlive callers. https://codereview.chromium.org/1725883002/diff/1/chrome/browser/lifetime/keep_alive_options.h File chrome/browser/lifetime/keep_alive_options.h (right): https://codereview.chromium.org/1725883002/diff/1/chrome/browser/lifetime/keep_alive_options.h#newcode10 chrome/browser/lifetime/keep_alive_options.h:10: ...
4 years, 10 months ago (2016-02-23 16:58:46 UTC) #2
dgn
https://codereview.chromium.org/1725883002/diff/1/chrome/browser/lifetime/keep_alive_registry.cc File chrome/browser/lifetime/keep_alive_registry.cc (right): https://codereview.chromium.org/1725883002/diff/1/chrome/browser/lifetime/keep_alive_registry.cc#newcode32 chrome/browser/lifetime/keep_alive_registry.cc:32: void KeepAliveRegistry::SetObserver(KeepAliveStateObserver* observer) { On 2016/02/23 16:58:46, dgn wrote: ...
4 years, 10 months ago (2016-02-24 13:03:56 UTC) #3
Bernhard Bauer
https://codereview.chromium.org/1725883002/diff/20001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): https://codereview.chromium.org/1725883002/diff/20001/chrome/browser/background/background_mode_manager.cc#newcode314 chrome/browser/background/background_mode_manager.cc:314: new ScopedKeepAlive(keep_alive::Origin::BACKGROUND_MODE_MANAGER_STARTUP, Are we ever going to use the ...
4 years, 10 months ago (2016-02-24 16:54:34 UTC) #4
dgn
https://codereview.chromium.org/1725883002/diff/20001/chrome/browser/background/background_mode_manager.cc File chrome/browser/background/background_mode_manager.cc (right): https://codereview.chromium.org/1725883002/diff/20001/chrome/browser/background/background_mode_manager.cc#newcode314 chrome/browser/background/background_mode_manager.cc:314: new ScopedKeepAlive(keep_alive::Origin::BACKGROUND_MODE_MANAGER_STARTUP, On 2016/02/24 16:54:33, Bernhard Bauer wrote: > ...
4 years, 10 months ago (2016-02-24 19:08:32 UTC) #5
dgn
PTAL https://codereview.chromium.org/1725883002/diff/20001/chrome/browser/lifetime/keep_alive_registry.cc File chrome/browser/lifetime/keep_alive_registry.cc (right): https://codereview.chromium.org/1725883002/diff/20001/chrome/browser/lifetime/keep_alive_registry.cc#newcode22 chrome/browser/lifetime/keep_alive_registry.cc:22: void HugBrowser() { On 2016/02/24 16:54:34, Bernhard Bauer ...
4 years, 10 months ago (2016-02-26 14:34:29 UTC) #6
dgn
PTAL
4 years, 10 months ago (2016-02-26 19:17:29 UTC) #10
sky
https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc File chrome/browser/lifetime/keep_alive_registry.cc (right): https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc#newcode49 chrome/browser/lifetime/keep_alive_registry.cc:49: bool old_keeping_alive = IsKeepingAlive(); 49-50 and 58-65 are duplicated ...
4 years, 10 months ago (2016-02-26 22:13:25 UTC) #11
dgn
https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc File chrome/browser/lifetime/keep_alive_registry.cc (right): https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc#newcode49 chrome/browser/lifetime/keep_alive_registry.cc:49: bool old_keeping_alive = IsKeepingAlive(); On 2016/02/26 22:13:25, sky wrote: ...
4 years, 9 months ago (2016-03-07 17:17:14 UTC) #12
dgn
PTAL https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.h File chrome/browser/lifetime/keep_alive_registry.h (right): https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.h#newcode56 chrome/browser/lifetime/keep_alive_registry.h:56: int restart_allowed_count_; On 2016/02/26 22:13:25, sky wrote: > ...
4 years, 9 months ago (2016-03-09 16:35:32 UTC) #13
sky
LGTM https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc File chrome/browser/lifetime/keep_alive_registry.cc (right): https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc#newcode49 chrome/browser/lifetime/keep_alive_registry.cc:49: bool old_keeping_alive = IsKeepingAlive(); On 2016/03/07 17:17:14, dgn ...
4 years, 9 months ago (2016-03-09 18:29:35 UTC) #14
dgn
Thanks! https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc File chrome/browser/lifetime/keep_alive_registry.cc (right): https://codereview.chromium.org/1725883002/diff/100001/chrome/browser/lifetime/keep_alive_registry.cc#newcode49 chrome/browser/lifetime/keep_alive_registry.cc:49: bool old_keeping_alive = IsKeepingAlive(); On 2016/03/09 18:29:35, sky ...
4 years, 9 months ago (2016-03-09 18:37:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1725883002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1725883002/140001
4 years, 9 months ago (2016-03-09 18:37:21 UTC) #18
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 9 months ago (2016-03-09 19:28:35 UTC) #20
commit-bot: I haz the power
4 years, 9 months ago (2016-03-09 19:30:45 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/3563ecaf39e0c08836a17743d5233de1e0e7b6f0
Cr-Commit-Position: refs/heads/master@{#380174}

Powered by Google App Engine
This is Rietveld 408576698