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

Issue 332463003: Pepper: Remove LOAD_MODULE SRPC call in SFI mode. (Closed)

Created:
6 years, 6 months ago by teravest
Modified:
6 years, 5 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org, hidehiko, jvoung (off chromium)
Visibility:
Public.

Description

Pepper: Remove LOAD_MODULE SRPC call in SFI mode. This change puts nexe information in the parameters for starting a NaCl plugin instead of sending that information over SRPC. This may remove the need for that IPC round trip entirely; perhaps we could report load failure as part of the RPCs for starting sel_ldr or performing StartModule(). nacl_defines.gypi as added as a dependency in components/components_tests.gyp because nacl_process_host.h now includes "native_client/src/public/nacl_file_info.h", which requires nacl_defines. BUG=333950 R=bbudge@chromium.org, brettw@chromium.org, hidehiko@chromium.org, jschuh@chromium.org, mseaborn@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285028 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285418

Patch Set 1 : rebased #

Total comments: 46

Patch Set 2 : fixes for bbudge #

Total comments: 4

Patch Set 3 : fixes for mseaborn #

Total comments: 8

Patch Set 4 : build fix #

Patch Set 5 : Rebased #

Patch Set 6 : Fixes for jvoung and hidehiko #

Total comments: 13

Patch Set 7 : rebased #

Patch Set 8 : fixes for mseaborn #

Total comments: 6

Patch Set 9 : fix leaked file descriptors #

Total comments: 1

Patch Set 10 : fix fd management, again #

Total comments: 4

Patch Set 11 : Remove stale comment and use TakeFileHandleForProcess #

Patch Set 12 : rebased #

Total comments: 1

Patch Set 13 : Remove ifdef for taking file handle #

Patch Set 14 : Update BUILD.gn after NaCl deps roll #

Patch Set 15 : fix for disable_nacl=1 #

Patch Set 16 : #

Total comments: 1

Patch Set 17 : add comment to forward declaration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -129 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -2 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M components/nacl/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/nacl/browser/nacl_host_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +33 lines, -2 lines 0 comments Download
M components/nacl/browser/nacl_process_host.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +15 lines, -0 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +13 lines, -11 lines 0 comments Download
M components/nacl/common/nacl_host_messages.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_messages.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/common/nacl_types.h View 1 2 3 4 5 4 chunks +11 lines, -1 line 0 comments Download
M components/nacl/common/nacl_types.cc View 1 2 5 chunks +8 lines, -12 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +20 lines, -1 line 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +16 lines, -3 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -7 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 6 6 chunks +13 lines, -37 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.h View 1 2 3 4 5 2 chunks +3 lines, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/service_runtime.cc View 1 2 3 4 2 chunks +7 lines, -48 lines 0 comments Download

Messages

Total messages: 66 (0 generated)
teravest
I still have to track down the FATAL log messages in scoped_handle.cc on Windows on ...
6 years, 5 months ago (2014-06-27 21:55:30 UTC) #1
teravest
I couldn't reproduce the earlier test failures on win_chromium_rel, and browser_tests is passing now, so ...
6 years, 5 months ago (2014-06-30 17:51:42 UTC) #2
bbudge
Minor issues, otherwise LGTM https://codereview.chromium.org/332463003/diff/240001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/240001/components/nacl/browser/nacl_process_host.cc#newcode831 components/nacl/browser/nacl_process_host.cc:831: #else nit: #elif defined(OS_WIN) to ...
6 years, 5 months ago (2014-06-30 18:28:53 UTC) #3
teravest
+cc hidehiko, mseaborn
6 years, 5 months ago (2014-06-30 18:29:40 UTC) #4
teravest
+mseaborn for components/nacl
6 years, 5 months ago (2014-06-30 19:17:32 UTC) #5
Mark Seaborn
https://codereview.chromium.org/332463003/diff/240001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/240001/components/nacl/browser/nacl_process_host.cc#newcode917 components/nacl/browser/nacl_process_host.cc:917: Nit: remove empty line to make it clear that ...
6 years, 5 months ago (2014-06-30 20:01:04 UTC) #6
Mark Seaborn
+jvoung for checking the validation caching logic.
6 years, 5 months ago (2014-06-30 20:41:24 UTC) #7
jvoung (off chromium)
https://codereview.chromium.org/332463003/diff/260001/ppapi/api/private/ppb_nacl_private.idl File ppapi/api/private/ppb_nacl_private.idl (right): https://codereview.chromium.org/332463003/diff/260001/ppapi/api/private/ppb_nacl_private.idl#newcode182 ppapi/api/private/ppb_nacl_private.idl:182: [in] PP_NaClFileInfo nexe_file_info, rebasing issue? there are now two ...
6 years, 5 months ago (2014-06-30 21:55:15 UTC) #8
teravest
https://codereview.chromium.org/332463003/diff/240001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/240001/components/nacl/browser/nacl_process_host.cc#newcode831 components/nacl/browser/nacl_process_host.cc:831: #else On 2014/06/30 18:28:53, bbudge (OOO July 1-8) wrote: ...
6 years, 5 months ago (2014-06-30 22:04:57 UTC) #9
jvoung (off chromium)
https://codereview.chromium.org/332463003/diff/240001/ppapi/native_client/src/trusted/plugin/plugin.cc File ppapi/native_client/src/trusted/plugin/plugin.cc (right): https://codereview.chromium.org/332463003/diff/240001/ppapi/native_client/src/trusted/plugin/plugin.cc#newcode246 ppapi/native_client/src/trusted/plugin/plugin.cc:246: info.token_lo = 0; On 2014/06/30 22:04:56, teravest wrote: > ...
6 years, 5 months ago (2014-06-30 22:34:43 UTC) #10
hidehiko
nitpicks, but some compiling looks to fail? https://codereview.chromium.org/332463003/diff/280001/components/nacl/common/nacl_types.h File components/nacl/common/nacl_types.h (right): https://codereview.chromium.org/332463003/diff/280001/components/nacl/common/nacl_types.h#newcode91 components/nacl/common/nacl_types.h:91: IPC::PlatformFileForTransit nexe_file; ...
6 years, 5 months ago (2014-07-01 05:39:01 UTC) #11
teravest
I fixed the earlier build error by making sure nacl defines were getting added in ...
6 years, 5 months ago (2014-07-01 17:48:35 UTC) #12
Mark Seaborn
https://codereview.chromium.org/332463003/diff/340001/components/nacl/loader/nacl_listener.cc File components/nacl/loader/nacl_listener.cc (right): https://codereview.chromium.org/332463003/diff/340001/components/nacl/loader/nacl_listener.cc#newcode412 components/nacl/loader/nacl_listener.cc:412: NaClChromeMainStartApp(nap, args); Since you're not switching to using NaClChromeMainStart() ...
6 years, 5 months ago (2014-07-01 20:32:49 UTC) #13
teravest
On Tue, Jul 1, 2014 at 2:32 PM, <mseaborn@chromium.org> wrote: > > https://codereview.chromium.org/332463003/diff/340001/components/nacl/loader/nacl_listener.cc > File ...
6 years, 5 months ago (2014-07-01 21:03:22 UTC) #14
teravest
On 2014/07/01 21:03:22, teravest wrote: > On Tue, Jul 1, 2014 at 2:32 PM, <mailto:mseaborn@chromium.org> ...
6 years, 5 months ago (2014-07-02 18:25:39 UTC) #15
Mark Seaborn
https://codereview.chromium.org/332463003/diff/340001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/332463003/diff/340001/components/components_tests.gyp#newcode472 components/components_tests.gyp:472: 'nacl/nacl_defines.gypi', Can you comment the reason for this change ...
6 years, 5 months ago (2014-07-02 23:48:36 UTC) #16
teravest
https://codereview.chromium.org/332463003/diff/340001/components/components_tests.gyp File components/components_tests.gyp (right): https://codereview.chromium.org/332463003/diff/340001/components/components_tests.gyp#newcode472 components/components_tests.gyp:472: 'nacl/nacl_defines.gypi', On 2014/07/02 23:48:36, Mark Seaborn wrote: > Can ...
6 years, 5 months ago (2014-07-07 22:48:48 UTC) #17
Mark Seaborn
https://codereview.chromium.org/332463003/diff/380001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/380001/components/nacl/browser/nacl_process_host.cc#newcode828 components/nacl/browser/nacl_process_host.cc:828: base::FileDescriptor(nexe_file_.TakePlatformFile(), false); This leaks the FD. You should either ...
6 years, 5 months ago (2014-07-08 18:46:00 UTC) #18
teravest
https://codereview.chromium.org/332463003/diff/380001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/380001/components/nacl/browser/nacl_process_host.cc#newcode828 components/nacl/browser/nacl_process_host.cc:828: base::FileDescriptor(nexe_file_.TakePlatformFile(), false); On 2014/07/08 18:46:00, Mark Seaborn wrote: > ...
6 years, 5 months ago (2014-07-08 19:03:46 UTC) #19
Mark Seaborn
https://codereview.chromium.org/332463003/diff/400001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/400001/components/nacl/browser/nacl_process_host.cc#newcode828 components/nacl/browser/nacl_process_host.cc:828: base::FileDescriptor(nexe_file_.GetPlatformFile(), false); This means you *can't* do nexe_file_.Close() before ...
6 years, 5 months ago (2014-07-08 20:32:48 UTC) #20
teravest
On 2014/07/08 20:32:48, Mark Seaborn wrote: > https://codereview.chromium.org/332463003/diff/400001/components/nacl/browser/nacl_process_host.cc > File components/nacl/browser/nacl_process_host.cc (right): > > https://codereview.chromium.org/332463003/diff/400001/components/nacl/browser/nacl_process_host.cc#newcode828 ...
6 years, 5 months ago (2014-07-08 22:28:02 UTC) #21
Mark Seaborn
LGTM https://codereview.chromium.org/332463003/diff/420001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/420001/components/nacl/browser/nacl_process_host.cc#newcode899 components/nacl/browser/nacl_process_host.cc:899: // nexe_file_ still keeps the ownership at this ...
6 years, 5 months ago (2014-07-09 22:44:19 UTC) #22
hidehiko
lgtm https://codereview.chromium.org/332463003/diff/420001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/420001/components/nacl/browser/nacl_process_host.cc#newcode904 components/nacl/browser/nacl_process_host.cc:904: params.nexe_file = nit: maybe: params.nexe_file = IPC::TakeFileHandleForProcess(nexe_file_.Pass(), process_->GetData().handle); ...
6 years, 5 months ago (2014-07-10 06:18:39 UTC) #23
teravest
https://codereview.chromium.org/332463003/diff/420001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/420001/components/nacl/browser/nacl_process_host.cc#newcode899 components/nacl/browser/nacl_process_host.cc:899: // nexe_file_ still keeps the ownership at this moment, ...
6 years, 5 months ago (2014-07-10 16:01:41 UTC) #24
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-10 16:01:45 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/460001
6 years, 5 months ago (2014-07-10 16:03:55 UTC) #26
teravest
+jschuh for components/nacl/common/*_messages.h
6 years, 5 months ago (2014-07-10 16:18:37 UTC) #27
jschuh
ipc security lgtm (notes: file token 128-bit id)
6 years, 5 months ago (2014-07-10 16:46:29 UTC) #28
teravest
The CQ bit was unchecked by teravest@chromium.org
6 years, 5 months ago (2014-07-10 16:48:31 UTC) #29
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-10 16:48:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/460001
6 years, 5 months ago (2014-07-10 16:48:39 UTC) #31
hidehiko
https://codereview.chromium.org/332463003/diff/460001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/332463003/diff/460001/components/nacl/browser/nacl_process_host.cc#newcode900 components/nacl/browser/nacl_process_host.cc:900: params.nexe_file = FYI: you don't need to switch by ...
6 years, 5 months ago (2014-07-10 16:51:24 UTC) #32
teravest
The CQ bit was unchecked by teravest@chromium.org
6 years, 5 months ago (2014-07-10 16:53:45 UTC) #33
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-10 17:21:00 UTC) #34
teravest
On 2014/07/10 16:51:24, hidehiko wrote: > https://codereview.chromium.org/332463003/diff/460001/components/nacl/browser/nacl_process_host.cc > File components/nacl/browser/nacl_process_host.cc (right): > > https://codereview.chromium.org/332463003/diff/460001/components/nacl/browser/nacl_process_host.cc#newcode900 > ...
6 years, 5 months ago (2014-07-10 17:21:13 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/480001
6 years, 5 months ago (2014-07-10 17:23:21 UTC) #36
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 18:36:33 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 20:32:23 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_gn_rel/builds/24604)
6 years, 5 months ago (2014-07-10 20:32:25 UTC) #39
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-23 14:40:58 UTC) #40
teravest
The CQ bit was unchecked by teravest@chromium.org
6 years, 5 months ago (2014-07-23 14:41:08 UTC) #41
teravest
+brettw for chrome/browser/BUILD.gn Now that there's been a successful NaCl DEPS roll, the we can ...
6 years, 5 months ago (2014-07-23 14:54:09 UTC) #42
brettw
gn lgtm
6 years, 5 months ago (2014-07-23 16:30:33 UTC) #43
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-23 16:42:37 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/500001
6 years, 5 months ago (2014-07-23 16:44:32 UTC) #45
teravest
+sky since apparently brett's GN approval still doesn't count for chrome/browser/BUILD.gn
6 years, 5 months ago (2014-07-23 17:16:19 UTC) #46
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 5 months ago (2014-07-23 17:51:42 UTC) #47
brettw
I'm not actually an owner of all BUILD.gn files. The script that tells you this ...
6 years, 5 months ago (2014-07-23 17:53:30 UTC) #48
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 17:55:40 UTC) #49
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/81808)
6 years, 5 months ago (2014-07-23 17:55:41 UTC) #50
sky
BUILD.gn LGTM
6 years, 5 months ago (2014-07-23 19:11:58 UTC) #51
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-23 19:27:15 UTC) #52
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/500001
6 years, 5 months ago (2014-07-23 19:28:39 UTC) #53
teravest
Committed patchset #14 manually as r285028 (presubmit successful).
6 years, 5 months ago (2014-07-23 20:22:55 UTC) #54
commit-bot: I haz the power
Failed to commit the patch. Sending chrome/browser/BUILD.gn Sending components/components_tests.gyp Sending components/nacl/browser/DEPS Sending components/nacl/browser/nacl_host_message_filter.cc Sending components/nacl/browser/nacl_process_host.cc ...
6 years, 5 months ago (2014-07-23 20:23:16 UTC) #55
teravest
This change was reverted since it broke the disable_nacl=1 and some TSAN buildbot. I suspect ...
6 years, 5 months ago (2014-07-24 15:03:42 UTC) #56
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-24 19:01:03 UTC) #57
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/560001
6 years, 5 months ago (2014-07-24 19:03:55 UTC) #58
Mark Seaborn
https://codereview.chromium.org/332463003/diff/560001/components/nacl/browser/nacl_process_host.h File components/nacl/browser/nacl_process_host.h (right): https://codereview.chromium.org/332463003/diff/560001/components/nacl/browser/nacl_process_host.h#newcode198 components/nacl/browser/nacl_process_host.h:198: // TODO(teravest): Use NaClFileInfo here, but without breaking the ...
6 years, 5 months ago (2014-07-24 19:10:59 UTC) #59
teravest
On 2014/07/24 19:10:59, Mark Seaborn wrote: > https://codereview.chromium.org/332463003/diff/560001/components/nacl/browser/nacl_process_host.h > File components/nacl/browser/nacl_process_host.h (right): > > https://codereview.chromium.org/332463003/diff/560001/components/nacl/browser/nacl_process_host.h#newcode198 ...
6 years, 5 months ago (2014-07-24 19:19:57 UTC) #60
Mark Seaborn
On 24 July 2014 12:19, <teravest@chromium.org> wrote: > On 2014/07/24 19:10:59, Mark Seaborn wrote: > ...
6 years, 5 months ago (2014-07-24 19:24:40 UTC) #61
teravest
The CQ bit was unchecked by teravest@chromium.org
6 years, 5 months ago (2014-07-24 19:26:28 UTC) #62
teravest
On 2014/07/24 19:24:40, Mark Seaborn wrote: > On 24 July 2014 12:19, <mailto:teravest@chromium.org> wrote: > ...
6 years, 5 months ago (2014-07-24 19:26:41 UTC) #63
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 5 months ago (2014-07-24 20:41:32 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/332463003/580001
6 years, 5 months ago (2014-07-24 20:44:41 UTC) #65
commit-bot: I haz the power
6 years, 5 months ago (2014-07-24 23:58:59 UTC) #66
Message was sent while issue was closed.
Change committed as 285418

Powered by Google App Engine
This is Rietveld 408576698