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

Issue 1185973003: Take 2: 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, 6 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, jochen+watch_chromium.org, jshin+watch_chromium.org, jungshik, kalyank, lcwu+watch_chromium.org, Marijn Kruisselbrink, michaelbai, mkwst+moarreviews-shell_chromium.org, mlamouri+watch-content_chromium.org, rmcilroy, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Take 2: 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. Changes MemoryMappedFile::Region to be a POD so that it doesn't create require static initializers. BUG=394502 Committed: https://crrev.com/fd2d44abf30dcb70c083cbbbb2491e825ab61f41 Cr-Commit-Position: refs/heads/master@{#335207}

Patch Set 1 #

Patch Set 2 : Remove static initializers #

Patch Set 3 : More clever fix #

Total comments: 1

Patch Set 4 : POD #

Patch Set 5 : PID #

Patch Set 6 : zero initialize #

Patch Set 7 : finish Region refactor #

Total comments: 6

Patch Set 8 : use smart pointer #

Patch Set 9 : scoped_ptr for gin/v8_initializer.cc #

Patch Set 10 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -493 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 2 chunks +1 line, -49 lines 0 comments Download
M base/files/memory_mapped_file.h View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M base/files/memory_mapped_file.cc View 1 2 3 1 chunk +1 line, -12 lines 0 comments Download
M base/files/memory_mapped_file_unittest.cc View 1 2 3 4 5 6 4 chunks +8 lines, -4 lines 0 comments Download
M base/i18n/icu_util.h View 2 1 chunk +9 lines, -4 lines 0 comments Download
M base/i18n/icu_util.cc View 1 2 3 4 5 6 7 4 chunks +109 lines, -81 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 2 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 5 chunks +0 lines, -57 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 2 chunks +0 lines, -7 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 6 chunks +1 line, -46 lines 0 comments Download
M content/app/android/child_process_service.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/DEPS View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/child_process_launcher.cc View 4 chunks +37 lines, -10 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 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 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 4 chunks +1 line, -46 lines 0 comments Download
M gin/v8_initializer.h View 2 chunks +12 lines, -6 lines 0 comments Download
M gin/v8_initializer.cc View 1 2 3 4 5 6 7 8 11 chunks +81 lines, -66 lines 0 comments Download
M ui/base/resource/data_pack_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 42 (18 generated)
agrieve
Confirmed with tools/linux/dump-static-initializers.py that no static initializers are introduced now. Only difference from before is ...
5 years, 6 months ago (2015-06-17 02:15:00 UTC) #2
rmcilroy
https://codereview.chromium.org/1185973003/diff/40001/gin/v8_initializer.cc File gin/v8_initializer.cc (right): https://codereview.chromium.org/1185973003/diff/40001/gin/v8_initializer.cc#newcode54 gin/v8_initializer.cc:54: *reinterpret_cast<base::MemoryMappedFile::Region*>(g_snapshot_region_data); This seems a bit hacky personally. I would ...
5 years, 6 months ago (2015-06-17 08:00:50 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185973003/40001
5 years, 6 months ago (2015-06-17 13:42:54 UTC) #6
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-17 13:42:57 UTC) #8
jam
please get owners of base/ and gin/ to approve the changes (i assume that patchset ...
5 years, 6 months ago (2015-06-17 15:38:35 UTC) #9
agrieve
On 2015/06/17 08:00:50, rmcilroy wrote: > https://codereview.chromium.org/1185973003/diff/40001/gin/v8_initializer.cc > File gin/v8_initializer.cc (right): > > https://codereview.chromium.org/1185973003/diff/40001/gin/v8_initializer.cc#newcode54 > ...
5 years, 6 months ago (2015-06-17 18:37:28 UTC) #11
agrieve
On 2015/06/17 15:38:35, jam wrote: > please get owners of base/ and gin/ to approve ...
5 years, 6 months ago (2015-06-17 18:37:45 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185973003/100001
5 years, 6 months ago (2015-06-17 20:24:21 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/83254) linux_chromium_gn_rel on ...
5 years, 6 months ago (2015-06-17 20:43:36 UTC) #17
Lei Zhang
On 2015/06/17 20:43:36, commit-bot: I haz the power wrote: > Dry run: Try jobs failed ...
5 years, 6 months ago (2015-06-17 20:50:54 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185973003/120001
5 years, 6 months ago (2015-06-18 00:26:26 UTC) #21
agrieve
On 2015/06/17 20:50:54, Lei Zhang wrote: > On 2015/06/17 20:43:36, commit-bot: I haz the power ...
5 years, 6 months ago (2015-06-18 02:19:57 UTC) #22
commit-bot: I haz the power
Dry run: 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/7499)
5 years, 6 months ago (2015-06-18 02:25:39 UTC) #24
jochen (gone - plz use gerrit)
gin/ lgtm https://codereview.chromium.org/1185973003/diff/120001/base/files/memory_mapped_file.h File base/files/memory_mapped_file.h (right): https://codereview.chromium.org/1185973003/diff/120001/base/files/memory_mapped_file.h#newcode31 base/files/memory_mapped_file.h:31: bool operator==(const Region& other) const; not needed ...
5 years, 6 months ago (2015-06-18 12:59:21 UTC) #25
agrieve
https://codereview.chromium.org/1185973003/diff/120001/base/files/memory_mapped_file.h File base/files/memory_mapped_file.h (right): https://codereview.chromium.org/1185973003/diff/120001/base/files/memory_mapped_file.h#newcode31 base/files/memory_mapped_file.h:31: bool operator==(const Region& other) const; On 2015/06/18 12:59:21, jochen ...
5 years, 6 months ago (2015-06-18 13:33:02 UTC) #26
Lei Zhang
lgtm https://codereview.chromium.org/1185973003/diff/120001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1185973003/diff/120001/base/i18n/icu_util.cc#newcode126 base/i18n/icu_util.cc:126: if (g_icudtl_mapped_file != nullptr) { just: if (foo_ptr) ...
5 years, 6 months ago (2015-06-18 19:00:51 UTC) #27
agrieve
https://codereview.chromium.org/1185973003/diff/120001/base/i18n/icu_util.cc File base/i18n/icu_util.cc (right): https://codereview.chromium.org/1185973003/diff/120001/base/i18n/icu_util.cc#newcode126 base/i18n/icu_util.cc:126: if (g_icudtl_mapped_file != nullptr) { On 2015/06/18 19:00:51, Lei ...
5 years, 6 months ago (2015-06-18 20:22:14 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185973003/160001
5 years, 6 months ago (2015-06-18 20:23:05 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/69528)
5 years, 6 months ago (2015-06-18 21:51:14 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185973003/160001
5 years, 6 months ago (2015-06-19 01:32:08 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/69702)
5 years, 6 months ago (2015-06-19 01:45:15 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1185973003/180001
5 years, 6 months ago (2015-06-19 02:19:01 UTC) #40
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-19 04:33:14 UTC) #41
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 04:34:06 UTC) #42
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/fd2d44abf30dcb70c083cbbbb2491e825ab61f41
Cr-Commit-Position: refs/heads/master@{#335207}

Powered by Google App Engine
This is Rietveld 408576698