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

Issue 2454073003: Allow backgrounding processes on Mac (Closed)

Created:
4 years, 1 month ago by lgrey
Modified:
4 years, 1 month ago
CC:
chromium-reviews, jam, nasko+codewatch_chromium.org, darin-cc_chromium.org, creis+watch_chromium.org, mac-reviews_chromium.org, gab
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow backgrounding processes on Mac Based on shrike@'s work in https://codereview.chromium.org/989703002 The original change was reverted as a result of https://crbug.com/536170. The underlying issue (backgrounding affecting session restore) was fixed in https://codereview.chromium.org/1769123002, so this change mostly adapts the original code to the current state of the codebase and adds a new feature to gate it. BUG=460102, 536170 Committed: https://crrev.com/0d2bafc9a7a14e5567201f585110abd0b89e32ae Cr-Commit-Position: refs/heads/master@{#430289}

Patch Set 1 #

Patch Set 2 : Use newly discovered port provider access in chrome/browser to fix task manager and tests #

Patch Set 3 : Remove unnecessary forward declare #

Total comments: 17

Patch Set 4 : Review comments #

Patch Set 5 : Gate process backgrounding tests on |CanBackgroundProcess| #

Patch Set 6 : Syntax error :/ #

Patch Set 7 : Stray file #

Patch Set 8 : Fix typo #

Patch Set 9 : Rename feature and fix comment indentation #

Total comments: 6

Patch Set 10 : Remove pre 10.9 shims and streamline render process host tests #

Patch Set 11 : Fix comment again :( #

Patch Set 12 : Initialize port provider in test #

Patch Set 13 : Forgot ifdef #

Total comments: 4

Patch Set 14 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+262 lines, -50 lines) Patch
M base/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M base/process/process.h View 1 2 3 4 5 6 7 8 3 chunks +32 lines, -1 line 0 comments Download
A base/process/process_mac.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +90 lines, -0 lines 0 comments Download
M base/process/process_posix.cc View 3 chunks +7 lines, -7 lines 0 comments Download
M base/process/process_unittest.cc View 1 2 3 4 5 5 chunks +35 lines, -4 lines 0 comments Download
M chrome/browser/renderer_host/render_process_host_chrome_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 15 chunks +82 lines, -37 lines 0 comments Download
M chrome/browser/task_manager/sampling/task_group_sampler.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 10 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 66 (45 generated)
lgrey
PTAL Didn't restore https://codereview.chromium.org/1199543003 since it looks like it was reverted because of concerns re: ...
4 years, 1 month ago (2016-10-31 13:45:11 UTC) #6
Nico
Looks fine, but I'm confused about the current status of this. The BUG= this links ...
4 years, 1 month ago (2016-10-31 14:02:54 UTC) #7
lgrey
On 2016/10/31 14:02:54, Nico wrote: > Looks fine, but I'm confused about the current status ...
4 years, 1 month ago (2016-10-31 14:14:07 UTC) #8
Nico
On 2016/10/31 14:14:07, lgrey wrote: > On 2016/10/31 14:02:54, Nico wrote: > > Looks fine, ...
4 years, 1 month ago (2016-10-31 14:30:33 UTC) #10
erikchen
> erikchen: I know we're pretty close to bumping deployment target to – do you ...
4 years, 1 month ago (2016-10-31 16:55:25 UTC) #13
shrike
https://codereview.chromium.org/2454073003/diff/40001/base/process/process.h File base/process/process.h (right): https://codereview.chromium.org/2454073003/diff/40001/base/process/process.h#newcode122 base/process/process.h:122: // it Move straggler "it" to the next line? ...
4 years, 1 month ago (2016-10-31 17:26:05 UTC) #14
Robert Sesek
Overall looks pretty good! https://codereview.chromium.org/2454073003/diff/40001/base/process/process_mac.cc File base/process/process_mac.cc (right): https://codereview.chromium.org/2454073003/diff/40001/base/process/process_mac.cc#newcode69 base/process/process_mac.cc:69: DCHECK(IsValid()); Move this before the ...
4 years, 1 month ago (2016-10-31 18:45:39 UTC) #15
lgrey
https://codereview.chromium.org/2454073003/diff/40001/base/process/process.h File base/process/process.h (right): https://codereview.chromium.org/2454073003/diff/40001/base/process/process.h#newcode122 base/process/process.h:122: // it On 2016/10/31 17:26:04, shrike wrote: > Move ...
4 years, 1 month ago (2016-10-31 19:22:02 UTC) #16
shrike
https://codereview.chromium.org/2454073003/diff/40001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2454073003/diff/40001/content/browser/renderer_host/render_process_host_impl.cc#newcode2817 content/browser/renderer_host/render_process_host_impl.cc:2817: // Disable updating process priority on startup for now ...
4 years, 1 month ago (2016-10-31 20:32:37 UTC) #19
Nico
https://codereview.chromium.org/2454073003/diff/40001/content/browser/renderer_host/render_process_host_impl.cc File content/browser/renderer_host/render_process_host_impl.cc (right): https://codereview.chromium.org/2454073003/diff/40001/content/browser/renderer_host/render_process_host_impl.cc#newcode2817 content/browser/renderer_host/render_process_host_impl.cc:2817: // Disable updating process priority on startup for now ...
4 years, 1 month ago (2016-11-01 02:07:27 UTC) #22
lgrey
Fixed up comments, PTAL
4 years, 1 month ago (2016-11-02 21:50:50 UTC) #39
shrike
lgtm I saw that tests (at least some) are disabled unless process backgrounding is enabled, ...
4 years, 1 month ago (2016-11-02 22:59:35 UTC) #40
Robert Sesek
https://codereview.chromium.org/2454073003/diff/160001/base/process/process_mac.cc File base/process/process_mac.cc (right): https://codereview.chromium.org/2454073003/diff/160001/base/process/process_mac.cc#newcode14 base/process/process_mac.cc:14: // TODO(shrike): Remove the TASK_OVERRIDE_QOS_POLICY ifndef once builders I ...
4 years, 1 month ago (2016-11-03 20:18:42 UTC) #41
lgrey
https://codereview.chromium.org/2454073003/diff/160001/base/process/process_mac.cc File base/process/process_mac.cc (right): https://codereview.chromium.org/2454073003/diff/160001/base/process/process_mac.cc#newcode14 base/process/process_mac.cc:14: // TODO(shrike): Remove the TASK_OVERRIDE_QOS_POLICY ifndef once builders On ...
4 years, 1 month ago (2016-11-04 16:09:40 UTC) #54
Robert Sesek
LGTM w/ two nits https://codereview.chromium.org/2454073003/diff/240001/base/process/process_mac.cc File base/process/process_mac.cc (right): https://codereview.chromium.org/2454073003/diff/240001/base/process/process_mac.cc#newcode10 base/process/process_mac.cc:10: #include <mach/mach.h> nit: goes between ...
4 years, 1 month ago (2016-11-04 16:51:16 UTC) #55
lgrey
Avi, Nico PTAL for content and base OWNERS, respectively, when convenient :) https://codereview.chromium.org/2454073003/diff/240001/base/process/process_mac.cc File base/process/process_mac.cc ...
4 years, 1 month ago (2016-11-04 18:23:32 UTC) #57
Nico
lgtm
4 years, 1 month ago (2016-11-04 19:42:55 UTC) #58
Avi (use Gerrit)
content lgtm
4 years, 1 month ago (2016-11-04 19:50:12 UTC) #59
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/2454073003/260001
4 years, 1 month ago (2016-11-07 14:58:26 UTC) #62
commit-bot: I haz the power
Committed patchset #14 (id:260001)
4 years, 1 month ago (2016-11-07 16:29:08 UTC) #64
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 16:42:54 UTC) #66
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/0d2bafc9a7a14e5567201f585110abd0b89e32ae
Cr-Commit-Position: refs/heads/master@{#430289}

Powered by Google App Engine
This is Rietveld 408576698