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

Issue 2501913002: Change the NaCl loader and broker processes to use the ServiceManager. (Closed)

Created:
4 years, 1 month ago by Sam McNally
Modified:
4 years ago
CC:
blundell+watchlist_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, droger+watchlist_chromium.org, jam, rickyz+watch_chromium.org, sdefresne+watchlist_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change the NaCl loader and broker processes to use the ServiceManager. This is the first child process outside of content to be connected to the ServiceManager so this CL adds a way for content embedders to provide additional service manifests via ContentBrowserClient. This would introduce an unnecessary string copy when obtaining service manifest overlays, so this changes that API to take a StringPiece. BUG=666605 TBR=kmarshall@chromium.org Committed: https://crrev.com/2b0375b64246a09f6df36b55274138f9748741b7 Cr-Commit-Position: refs/heads/master@{#440299}

Patch Set 1 : #

Total comments: 12

Patch Set 2 : rebase #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : rebase #

Patch Set 5 : #

Total comments: 4

Patch Set 6 : rebase #

Patch Set 7 : #

Total comments: 4

Patch Set 8 : #

Patch Set 9 : #

Total comments: 2

Patch Set 10 : ipc/SECURITY_OWNERS as manifest.json OWNERS #

Patch Set 11 : rebase #

Patch Set 12 : rebase #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+339 lines, -170 lines) Patch
M android_webview/browser/aw_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M android_webview/browser/aw_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M blimp/engine/app/blimp_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M blimp/engine/app/blimp_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/chrome_content_browser_manifest_overlay.json View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -1 line 0 comments Download
M chromecast/browser/cast_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/DEPS View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/broker/BUILD.gn View 4 chunks +11 lines, -0 lines 0 comments Download
A components/nacl/broker/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/broker/nacl_broker_listener.cc View 4 chunks +9 lines, -9 lines 0 comments Download
A components/nacl/broker/nacl_broker_manifest.json View 1 chunk +13 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_broker_host_win.cc View 3 chunks +3 lines, -8 lines 0 comments Download
M components/nacl/browser/nacl_process_host.h View 1 chunk +0 lines, -3 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 5 chunks +5 lines, -13 lines 0 comments Download
M components/nacl/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -1 line 0 comments Download
M components/nacl/common/DEPS View 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_constants.h View 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_constants.cc View 1 chunk +3 lines, -0 lines 0 comments Download
A components/nacl/common/nacl_service.h View 1 chunk +21 lines, -0 lines 0 comments Download
A components/nacl/common/nacl_service.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +113 lines, -0 lines 0 comments Download
M components/nacl/loader/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 9 chunks +12 lines, -10 lines 0 comments Download
A components/nacl/loader/OWNERS View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M components/nacl/loader/nacl_helper_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M components/nacl/loader/nacl_helper_win_64.cc View 2 chunks +0 lines, -8 lines 0 comments Download
M components/nacl/loader/nacl_listener.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -8 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +6 lines, -29 lines 0 comments Download
A components/nacl/loader/nacl_loader_manifest.json View 1 chunk +13 lines, -0 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -7 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -25 lines 0 comments Download
M content/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_child_process_host_impl.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_manager/service_manager_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +31 lines, -27 lines 0 comments Download
M content/public/browser/browser_child_process_host.h View 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -1 line 0 comments Download
M content/public/browser/content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +6 lines, -1 line 0 comments Download
M content/shell/browser/shell_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M content/zygote/zygote_linux.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M headless/lib/browser/headless_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M headless/lib/browser/headless_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 138 (101 generated)
Sam McNally
4 years, 1 month ago (2016-11-18 05:06:58 UTC) #40
Sam McNally
ping
4 years, 1 month ago (2016-11-23 00:43:30 UTC) #49
Ken Rockot(use gerrit already)
Apologies for the delay - LGTM!
4 years, 1 month ago (2016-11-23 03:27:50 UTC) #53
Sam McNally
+mseaborn for //components/nacl +piman for //content
4 years, 1 month ago (2016-11-23 04:11:03 UTC) #55
piman
https://codereview.chromium.org/2501913002/diff/180001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2501913002/diff/180001/content/browser/service_manager/service_manager_context.cc#newcode258 content/browser/service_manager/service_manager_context.cc:258: base::debug::Alias(&manifest.first); Why this? https://codereview.chromium.org/2501913002/diff/180001/content/browser/service_manager/service_manager_context.cc#newcode259 content/browser/service_manager/service_manager_context.cc:259: CHECK(!contents.empty()); nit: DCHECK https://codereview.chromium.org/2501913002/diff/180001/content/browser/service_manager/service_manager_context.cc#newcode263 ...
4 years ago (2016-11-23 18:08:11 UTC) #56
Sam McNally
https://codereview.chromium.org/2501913002/diff/180001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2501913002/diff/180001/content/browser/service_manager/service_manager_context.cc#newcode258 content/browser/service_manager/service_manager_context.cc:258: base::debug::Alias(&manifest.first); On 2016/11/23 18:08:10, piman wrote: > Why this? ...
4 years ago (2016-11-24 02:10:41 UTC) #60
piman
https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc#newcode123 content/browser/service_manager/service_manager_context.cc:123: CHECK(!contents.empty()); If these are to investigate a bug, please ...
4 years ago (2016-11-28 23:04:37 UTC) #63
Sam McNally
https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc#newcode123 content/browser/service_manager/service_manager_context.cc:123: CHECK(!contents.empty()); On 2016/11/28 23:04:37, piman wrote: > If these ...
4 years ago (2016-11-28 23:33:22 UTC) #64
Ken Rockot(use gerrit already)
https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc#newcode123 content/browser/service_manager/service_manager_context.cc:123: CHECK(!contents.empty()); On 2016/11/28 at 23:33:22, Sam McNally wrote: > ...
4 years ago (2016-11-28 23:47:22 UTC) #65
Ken Rockot(use gerrit already)
On 2016/11/28 at 23:47:22, Ken Rockot wrote: > https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc > File content/browser/service_manager/service_manager_context.cc (right): > > ...
4 years ago (2016-11-28 23:47:46 UTC) #66
piman
On Mon, Nov 28, 2016 at 3:47 PM, <rockot@chromium.org> wrote: > > https://codereview.chromium.org/2501913002/diff/240001/ > content/browser/service_manager/service_manager_context.cc ...
4 years ago (2016-11-29 00:27:07 UTC) #67
Ken Rockot(use gerrit already)
On Mon, Nov 28, 2016 at 4:26 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
4 years ago (2016-11-29 00:38:47 UTC) #68
piman
On Mon, Nov 28, 2016 at 4:38 PM, Ken Rockot <rockot@chromium.org> wrote: > > > ...
4 years ago (2016-11-29 00:47:49 UTC) #69
Ken Rockot(use gerrit already)
On Mon, Nov 28, 2016 at 4:47 PM, Antoine Labour <piman@chromium.org> wrote: > > > ...
4 years ago (2016-11-29 01:07:31 UTC) #70
Sam McNally
https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc File content/browser/service_manager/service_manager_context.cc (right): https://codereview.chromium.org/2501913002/diff/240001/content/browser/service_manager/service_manager_context.cc#newcode123 content/browser/service_manager/service_manager_context.cc:123: CHECK(!contents.empty()); On 2016/11/28 23:47:22, Ken Rockot wrote: > On ...
4 years ago (2016-11-29 03:30:14 UTC) #73
piman
lgtm
4 years ago (2016-11-29 18:46:41 UTC) #76
Sam McNally
mseaborn: ping
4 years ago (2016-11-30 10:02:44 UTC) #77
Ken Rockot(use gerrit already)
Friendly ping. Desperately seeking a NaCl owner to review this CL!
4 years ago (2016-12-16 00:12:47 UTC) #79
bradnelson
lgtm https://codereview.chromium.org/2501913002/diff/280001/components/nacl/loader/BUILD.gn File components/nacl/loader/BUILD.gn (right): https://codereview.chromium.org/2501913002/diff/280001/components/nacl/loader/BUILD.gn#newcode199 components/nacl/loader/BUILD.gn:199: # TODO(brettw) can this just depend on //components/nacl/common? ...
4 years ago (2016-12-16 19:00:15 UTC) #80
Ken Rockot(use gerrit already)
ServiceContext owns and maintains the connection to the service manager
4 years ago (2016-12-16 19:19:47 UTC) #81
bradnelson
Ah, I see. lgtm (except for the nit about the TODO)
4 years ago (2016-12-16 19:30:23 UTC) #82
Sam McNally
+calamity for chrome/browser/browser_resources.grd +dcheng for the manifests
4 years ago (2016-12-18 23:06:37 UTC) #86
Sam McNally
https://codereview.chromium.org/2501913002/diff/280001/components/nacl/loader/BUILD.gn File components/nacl/loader/BUILD.gn (right): https://codereview.chromium.org/2501913002/diff/280001/components/nacl/loader/BUILD.gn#newcode199 components/nacl/loader/BUILD.gn:199: # TODO(brettw) can this just depend on //components/nacl/common? On ...
4 years ago (2016-12-18 23:16:54 UTC) #89
calamity
browser_resources.grd lgtm.
4 years ago (2016-12-19 00:29:37 UTC) #90
dcheng
lgtm https://codereview.chromium.org/2501913002/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2501913002/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode3136 chrome/browser/chrome_content_browser_client.cc:3136: {nacl::kNaClBrokerServiceName, IDR_NACL_BROKER_MANIFEST}, If this is something clang-format is ...
4 years ago (2016-12-19 05:03:25 UTC) #93
Sam McNally
+kmarshall for //blimp +skyostil for //headless https://codereview.chromium.org/2501913002/diff/320001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/2501913002/diff/320001/chrome/browser/chrome_content_browser_client.cc#newcode3136 chrome/browser/chrome_content_browser_client.cc:3136: {nacl::kNaClBrokerServiceName, IDR_NACL_BROKER_MANIFEST}, On ...
4 years ago (2016-12-19 09:36:18 UTC) #97
Sam McNally
+boliu for //android_webview +halliwell for //chromecast
4 years ago (2016-12-19 09:51:08 UTC) #103
Sami
headless/ lgtm -- thank you!
4 years ago (2016-12-19 10:23:25 UTC) #104
halliwell
On 2016/12/19 10:23:25, Sami wrote: > headless/ lgtm -- thank you! chromecast/ lgtm
4 years ago (2016-12-19 14:09:03 UTC) #107
boliu
rs lgtm
4 years ago (2016-12-19 17:21:04 UTC) #108
Mark Seaborn
https://codereview.chromium.org/2501913002/diff/360001/chromecast/browser/cast_content_browser_client.h File chromecast/browser/cast_content_browser_client.h (right): https://codereview.chromium.org/2501913002/diff/360001/chromecast/browser/cast_content_browser_client.h#newcode161 chromecast/browser/cast_content_browser_client.h:161: base::StringPiece service_name) override; Could you explain in the commit ...
4 years ago (2016-12-19 19:17:05 UTC) #109
Sam McNally
https://codereview.chromium.org/2501913002/diff/360001/chromecast/browser/cast_content_browser_client.h File chromecast/browser/cast_content_browser_client.h (right): https://codereview.chromium.org/2501913002/diff/360001/chromecast/browser/cast_content_browser_client.h#newcode161 chromecast/browser/cast_content_browser_client.h:161: base::StringPiece service_name) override; On 2016/12/19 19:17:05, Mark Seaborn wrote: ...
4 years ago (2016-12-19 23:05:22 UTC) #114
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/2501913002/440001
4 years ago (2016-12-21 23:36:44 UTC) #128
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/331201)
4 years ago (2016-12-21 23:46:37 UTC) #130
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/2501913002/460001
4 years ago (2016-12-22 00:13:06 UTC) #133
commit-bot: I haz the power
Committed patchset #13 (id:460001)
4 years ago (2016-12-22 01:26:54 UTC) #136
commit-bot: I haz the power
4 years ago (2016-12-22 01:29:50 UTC) #138
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/2b0375b64246a09f6df36b55274138f9748741b7
Cr-Commit-Position: refs/heads/master@{#440299}

Powered by Google App Engine
This is Rietveld 408576698