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

Issue 1182443003: Moved logic for mapping child process FDs for ICU and V8 into child_process_launcher.cc (Closed)

Created:
5 years, 6 months ago by agrieve
Modified:
5 years, 5 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, extensions-reviews_chromium.org, gunsch+watch_chromium.org, jam, jochen+watch_chromium.org, jshin+watch_chromium.org, kalyank, lcwu+watch_chromium.org, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, sadrul, Yaron
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moved logic for mapping child process FDs for ICU and V8 into child_process_launcher.cc Used to be defined in each app's ContentBrowserClient, but since content/ is the one that receives the FDs, it makes sense that it should be the one to send them. This also removes ChildProcessLauncher::AppendMappedFileCommandLineSwitches as it is no longer needed. BUG=394502 Committed: https://crrev.com/228414fc8870f88f11ada7512e88ea6999890f56 Cr-Commit-Position: refs/heads/master@{#334702}

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : add missing #if OS_ANDROID #

Patch Set 4 : rebased #

Patch Set 5 : Fix compile warning #

Patch Set 6 : fix more compile errors #

Patch Set 7 : fix another unused var #

Patch Set 8 : compile v8 warn #

Patch Set 9 : compile 2 #

Total comments: 2

Patch Set 10 : compile 3 #

Patch Set 11 : allow icu init to fail (for tests) #

Total comments: 4

Patch Set 12 : rmcilroy review comments #

Patch Set 13 : #

Patch Set 14 : add build deps #

Patch Set 15 : attempt to fix trybots #

Patch Set 16 : rebased #

Patch Set 17 : Use PlatformFile rather than File to avoid File on Windows from detecting the case of multiple owne… #

Patch Set 18 : winbuild1 #

Patch Set 19 : fix ios and win2 #

Patch Set 20 : fix lin #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -458 lines) Patch
M ash/shell/content_client/shell_content_browser_client.h View 1 chunk +0 lines, -16 lines 0 comments Download
M ash/shell/content_client/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -49 lines 0 comments Download
M base/i18n/icu_util.h View 1 chunk +9 lines, -4 lines 0 comments Download
M base/i18n/icu_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +105 lines, -81 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 6 chunks +0 lines, -58 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -7 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +1 line, -46 lines 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/child_process_launcher.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +37 lines, -10 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 1 chunk +0 lines, -6 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 2 chunks +0 lines, -9 lines 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 4 chunks +1 line, -40 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.h View 2 chunks +0 lines, -16 lines 0 comments Download
M extensions/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 4 chunks +1 line, -46 lines 0 comments Download
M gin/v8_initializer.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +12 lines, -6 lines 0 comments Download
M gin/v8_initializer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 13 chunks +72 lines, -55 lines 0 comments Download

Messages

Total messages: 53 (20 generated)
jam
Thanks +jochen for the v8 bits https://codereview.chromium.org/1182443003/diff/20001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/1182443003/diff/20001/content/browser/child_process_launcher.cc#newcode149 content/browser/child_process_launcher.cc:149: files_to_register->Share( should be ...
5 years, 6 months ago (2015-06-11 16:11:34 UTC) #3
agrieve
https://codereview.chromium.org/1182443003/diff/20001/content/browser/child_process_launcher.cc File content/browser/child_process_launcher.cc (right): https://codereview.chromium.org/1182443003/diff/20001/content/browser/child_process_launcher.cc#newcode149 content/browser/child_process_launcher.cc:149: files_to_register->Share( On 2015/06/11 16:11:34, jam wrote: > should be ...
5 years, 6 months ago (2015-06-11 17:30:35 UTC) #4
michaelbai
Came across this, is it suitable to carry on all GlobalDescriptors? Register ICU and V8 ...
5 years, 6 months ago (2015-06-11 19:13:04 UTC) #6
agrieve
On 2015/06/11 19:13:04, michaelbai wrote: > Came across this, is it suitable to carry on ...
5 years, 6 months ago (2015-06-11 19:28:14 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182443003/160001
5 years, 6 months ago (2015-06-12 01:27:18 UTC) #9
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 6 months ago (2015-06-12 01:27:23 UTC) #11
jochen (gone - plz use gerrit)
https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS File content/browser/DEPS (right): https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS#newcode12 content/browser/DEPS:12: "+gin", content/browser doesn't pull in gin as a build ...
5 years, 6 months ago (2015-06-12 08:34:36 UTC) #12
agrieve
https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS File content/browser/DEPS (right): https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS#newcode12 content/browser/DEPS:12: "+gin", On 2015/06/12 08:34:36, jochen wrote: > content/browser doesn't ...
5 years, 6 months ago (2015-06-12 13:39:16 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/1182443003/200001
5 years, 6 months ago (2015-06-12 19:41:38 UTC) #15
commit-bot: I haz the power
Dry run: No LGTM from a valid reviewer yet. Only full committers are accepted. Even ...
5 years, 6 months ago (2015-06-12 19:41:45 UTC) #17
agrieve
On 2015/06/12 13:39:16, agrieve wrote: > https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS > File content/browser/DEPS (right): > > https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS#newcode12 > ...
5 years, 6 months ago (2015-06-12 19:42:32 UTC) #18
rmcilroy
A couple of driveby comments. https://codereview.chromium.org/1182443003/diff/200001/content/browser/DEPS File content/browser/DEPS (right): https://codereview.chromium.org/1182443003/diff/200001/content/browser/DEPS#newcode12 content/browser/DEPS:12: "+gin", Probably best to ...
5 years, 6 months ago (2015-06-12 22:09:25 UTC) #19
jam
lgtm on my end, deferring to others' outstanding comments. thanks for cleaning this up
5 years, 6 months ago (2015-06-13 00:14:59 UTC) #20
Lei Zhang
chrome/ lgtm
5 years, 6 months ago (2015-06-13 00:17:30 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182443003/240001
5 years, 6 months ago (2015-06-15 13:38:37 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/6264)
5 years, 6 months ago (2015-06-15 14:06:13 UTC) #26
jochen (gone - plz use gerrit)
On 2015/06/12 at 13:39:16, agrieve wrote: > https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS > File content/browser/DEPS (right): > > https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS#newcode12 ...
5 years, 6 months ago (2015-06-15 14:51:20 UTC) #27
agrieve
On 2015/06/15 14:51:20, jochen wrote: > On 2015/06/12 at 13:39:16, agrieve wrote: > > https://codereview.chromium.org/1182443003/diff/160001/content/browser/DEPS ...
5 years, 6 months ago (2015-06-15 15:03:06 UTC) #28
jochen (gone - plz use gerrit)
since chrome/browser already depends on gin (through net_with_v8), this lgtm
5 years, 6 months ago (2015-06-15 15:21:57 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182443003/340001
5 years, 6 months ago (2015-06-16 00:31:31 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/77739)
5 years, 6 months ago (2015-06-16 00:44:45 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182443003/360001
5 years, 6 months ago (2015-06-16 14:46:52 UTC) #37
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/48163)
5 years, 6 months ago (2015-06-16 14:57:30 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182443003/380001
5 years, 6 months ago (2015-06-16 16:04:24 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/34343)
5 years, 6 months ago (2015-06-16 18:33:54 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1182443003/380001
5 years, 6 months ago (2015-06-16 18:55:06 UTC) #46
commit-bot: I haz the power
Committed patchset #20 (id:380001)
5 years, 6 months ago (2015-06-16 21:40:06 UTC) #47
commit-bot: I haz the power
Patchset 20 (id:??) landed as https://crrev.com/228414fc8870f88f11ada7512e88ea6999890f56 Cr-Commit-Position: refs/heads/master@{#334702}
5 years, 6 months ago (2015-06-16 21:41:05 UTC) #48
Marijn Kruisselbrink
A revert of this CL (patchset #20 id:380001) has been created in https://codereview.chromium.org/1187213002/ by mek@chromium.org. ...
5 years, 6 months ago (2015-06-16 22:26:39 UTC) #49
Marijn Kruisselbrink
On 2015/06/16 at 22:26:39, Marijn Kruisselbrink wrote: > A revert of this CL (patchset #20 ...
5 years, 6 months ago (2015-06-16 22:27:56 UTC) #50
agrieve
On 2015/06/16 22:27:56, Marijn Kruisselbrink wrote: > On 2015/06/16 at 22:26:39, Marijn Kruisselbrink wrote: > ...
5 years, 6 months ago (2015-06-17 01:01:42 UTC) #51
Lei Zhang
On 2015/06/17 01:01:42, agrieve wrote: > On 2015/06/16 22:27:56, Marijn Kruisselbrink wrote: > > On ...
5 years, 6 months ago (2015-06-17 01:09:06 UTC) #52
agrieve
5 years, 6 months ago (2015-06-17 01:13:44 UTC) #53
Message was sent while issue was closed.
On 2015/06/17 01:09:06, Lei Zhang wrote:
> On 2015/06/17 01:01:42, agrieve wrote:
> > On 2015/06/16 22:27:56, Marijn Kruisselbrink wrote:
> > > On 2015/06/16 at 22:26:39, Marijn Kruisselbrink wrote:
> > > > A revert of this CL (patchset #20 id:380001) has been created in
> > > https://codereview.chromium.org/1187213002/ by mailto:mek@chromium.org.
> > > > 
> > > > The reason for reverting is: Adds new static initializers in
> > >
> >
>
http://build.chromium.org/p/chromium/buildstatus?builder=Linux%20x64&number=4979
> > > > 
> > > > # icu_util.cc cc::VertexShaderQuadAA::VertexShaderQuadAA()
> > > > # icu_util.cc base::MemoryMappedFile::MemoryMappedFile()
> > > > # icu_util.cc base::i18n::(anonymous namespace)::g_icudtl_region
> > > > # icu_util.cc base::i18n::(anonymous namespace)::g_icudtl_mapped_file
> > > > # icu_util.cc operator new(unsigned long)
> > > > .
> > > 
> > > And a few in v8_initializer.cc as well:
> > > # v8_initializer.cc cc::VertexShaderQuadAA::VertexShaderQuadAA()
> > > # v8_initializer.cc gin::(anonymous namespace)::g_natives_region
> > > # v8_initializer.cc gin::(anonymous namespace)::g_snapshot_region
> > 
> > Marijn (or anyone else) - anyone know how I can test that my next attempt
> won't
> > break this builder again? I don't see "Linux x64" it in the list of trybots
in
> > the code review tool, and a code search for "sizes.py" doesn't turn up the
> > script that failed.
> 
> On Linux, do a release build with GYP_DEFINES="component=static_library", then
> use tools/linux/dump-static-initializers.py to print the static initializers.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698