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

Issue 2914913002: [Mac] Enable AppNap for renderers (Closed)

Created:
3 years, 6 months ago by lgrey
Modified:
3 years, 6 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, darin-cc_chromium.org, jam, mac-reviews_chromium.org, mlamouri+watch-content_chromium.org, vmpstr+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Enable AppNap for renderers TEST=Run with --enable-features="MacAllowBackgroundingProcesses<MacAllowBackgroundingProcesses" --force-fieldtrials=MacAllowBackgroundingProcesses/Enabled --force-fieldtrial-params=MacAllowBackgroundingProcesses.Enabled:app_nap/true BUG=460102 Review-Url: https://codereview.chromium.org/2914913002 Cr-Commit-Position: refs/heads/master@{#478049} Committed: https://chromium.googlesource.com/chromium/src/+/023fd36f8333a24124c9f8071303aba913392704

Patch Set 1 #

Patch Set 2 : Task DCHECK #

Patch Set 3 : Remove debugging cruft #

Patch Set 4 : Clean up #

Total comments: 6

Patch Set 5 : Rm NSSupportsAutomaticTermination key #

Patch Set 6 : Add comment for magic numbers #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -1 line) Patch
M base/process/process.h View 1 chunk +3 lines, -0 lines 0 comments Download
M base/process/process_mac.cc View 1 1 chunk +13 lines, -1 line 0 comments Download
M chrome/app/helper-Info.plist View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.h View 2 2 chunks +8 lines, -0 lines 0 comments Download
M content/child/child_thread_impl.cc View 2 3 chunks +15 lines, -0 lines 0 comments Download
M content/common/mac/app_nap_activity.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/mac/app_nap_activity.mm View 1 2 3 4 5 2 chunks +21 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 36 (19 generated)
lgrey
PTAL :)
3 years, 6 months ago (2017-06-02 18:58:50 UTC) #7
Robert Sesek
LGTM! https://codereview.chromium.org/2914913002/diff/60001/chrome/app/helper-Info.plist File chrome/app/helper-Info.plist (right): https://codereview.chromium.org/2914913002/diff/60001/chrome/app/helper-Info.plist#newcode31 chrome/app/helper-Info.plist:31: <key>NSSupportsAutomaticTermination</key> Do we want this key? Based on ...
3 years, 6 months ago (2017-06-02 19:26:36 UTC) #8
shrike
https://codereview.chromium.org/2914913002/diff/60001/chrome/app/helper-Info.plist File chrome/app/helper-Info.plist (right): https://codereview.chromium.org/2914913002/diff/60001/chrome/app/helper-Info.plist#newcode31 chrome/app/helper-Info.plist:31: <key>NSSupportsAutomaticTermination</key> On 2017/06/02 19:26:36, Robert Sesek wrote: > Do ...
3 years, 6 months ago (2017-06-02 19:57:53 UTC) #9
lgrey
https://codereview.chromium.org/2914913002/diff/60001/chrome/app/helper-Info.plist File chrome/app/helper-Info.plist (right): https://codereview.chromium.org/2914913002/diff/60001/chrome/app/helper-Info.plist#newcode31 chrome/app/helper-Info.plist:31: <key>NSSupportsAutomaticTermination</key> On 2017/06/02 19:57:53, shrike wrote: > On 2017/06/02 ...
3 years, 6 months ago (2017-06-05 14:49:43 UTC) #10
shrike
https://codereview.chromium.org/2914913002/diff/60001/content/common/mac/app_nap_activity.mm File content/common/mac/app_nap_activity.mm (right): https://codereview.chromium.org/2914913002/diff/60001/content/common/mac/app_nap_activity.mm#newcode51 content/common/mac/app_nap_activity.mm:51: 0x3b000000, @"Finished delay after app launch and bundle check", ...
3 years, 6 months ago (2017-06-05 15:29:36 UTC) #11
lgrey
On 2017/06/05 15:29:36, shrike wrote: > https://codereview.chromium.org/2914913002/diff/60001/content/common/mac/app_nap_activity.mm > File content/common/mac/app_nap_activity.mm (right): > > https://codereview.chromium.org/2914913002/diff/60001/content/common/mac/app_nap_activity.mm#newcode51 > ...
3 years, 6 months ago (2017-06-05 15:56:29 UTC) #12
shrike
On 2017/06/05 15:56:29, lgrey wrote: > Given the values, we're reasonably sure there's no permutation ...
3 years, 6 months ago (2017-06-05 17:24:39 UTC) #13
lgrey
On 2017/06/05 17:24:39, shrike wrote: > On 2017/06/05 15:56:29, lgrey wrote: > > Given the ...
3 years, 6 months ago (2017-06-05 20:19:21 UTC) #14
lgrey
3 years, 6 months ago (2017-06-05 20:19:30 UTC) #15
Robert Sesek
LGTM
3 years, 6 months ago (2017-06-05 21:03:29 UTC) #16
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/2914913002/100001
3 years, 6 months ago (2017-06-06 15:20:12 UTC) #19
lgrey
Thanks! + mark@ for base/OWNERS + rockot@ for chrome/app/OWNERS + avi@ for content/OWNERS
3 years, 6 months ago (2017-06-06 15:23:15 UTC) #22
Avi (use Gerrit)
lgtm Magic!
3 years, 6 months ago (2017-06-06 15:27:27 UTC) #23
Mark Mentovai
LGTM
3 years, 6 months ago (2017-06-06 16:16:09 UTC) #24
Ken Rockot(use gerrit already)
lgtm
3 years, 6 months ago (2017-06-08 17:28:49 UTC) #25
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/2914913002/100001
3 years, 6 months ago (2017-06-08 19:16:19 UTC) #33
commit-bot: I haz the power
3 years, 6 months ago (2017-06-08 19:21:12 UTC) #36
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/023fd36f8333a24124c9f8071303...

Powered by Google App Engine
This is Rietveld 408576698