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

Issue 1085583005: Refactor params of NaClProcessMsg_Start. (Closed)

Created:
5 years, 8 months ago by hidehiko
Modified:
5 years, 7 months ago
CC:
chromium-reviews, Yusuke Sato, hamaji, mazda, abarth-chromium
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor params of NaClProcessMsg_Start. This is a preparation to remove the resource leak related to NaClProcessMsg_Start IPC message. - Get rid of std::pair<std::string, std::string> for the prefetch request, instead introduced a struct NaClResourcePrefetchRequest. - Use the struct for JsonManifest::GetPrefetchableFiles. - Expand handles to named fields to CHECK the passed handles more properly in nacl_listener.cc - Get rid of nacl::FileDescriptor for the param, instead use IPC::PlatformFileForTransit. TEST=Ran bots. BUG=358417 Committed: https://crrev.com/0e949f991ae48c1f4ef91e78a96f986931093220 Cr-Commit-Position: refs/heads/master@{#327666}

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : Rebase #

Patch Set 4 : #

Total comments: 18

Patch Set 5 : Rebase. #

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : Rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -144 lines) Patch
M components/nacl/browser/nacl_host_message_filter.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M components/nacl/browser/nacl_host_message_filter.cc View 1 2 3 6 chunks +24 lines, -23 lines 1 comment Download
M components/nacl/browser/nacl_process_host.h View 1 2 3 2 chunks +2 lines, -3 lines 0 comments Download
M components/nacl/browser/nacl_process_host.cc View 1 2 3 4 5 6 7 8 chunks +31 lines, -57 lines 0 comments Download
M components/nacl/common/nacl_host_messages.h View 1 2 3 1 chunk +6 lines, -1 line 0 comments Download
M components/nacl/common/nacl_messages.h View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M components/nacl/common/nacl_types.h View 1 2 3 4 5 6 7 5 chunks +39 lines, -21 lines 0 comments Download
M components/nacl/common/nacl_types.cc View 1 2 3 4 5 6 7 4 chunks +27 lines, -5 lines 0 comments Download
M components/nacl/loader/nacl_listener.cc View 1 2 3 4 5 5 chunks +15 lines, -14 lines 0 comments Download
M components/nacl/loader/nonsfi/nonsfi_listener.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M components/nacl/renderer/json_manifest.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M components/nacl/renderer/json_manifest.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -2 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 6 7 2 chunks +12 lines, -10 lines 0 comments Download

Messages

Total messages: 28 (8 generated)
hidehiko
PTAL. Mark, during addressing your comments of https://codereview.chromium.org/1094653003/, it turned out applying all your comments ...
5 years, 8 months ago (2015-04-21 16:38:33 UTC) #2
hidehiko
On 2015/04/21 16:38:33, hidehiko wrote: > PTAL. > > Mark, during addressing your comments of ...
5 years, 8 months ago (2015-04-22 15:06:32 UTC) #3
Mark Seaborn
OK, there are multiple parts to this: 1) Replacing the 'handles' vector with fields 2) ...
5 years, 8 months ago (2015-04-23 00:10:11 UTC) #4
hidehiko
R += jln@. Could you review *message* files as an OWNER? > OK, there are ...
5 years, 8 months ago (2015-04-23 11:51:29 UTC) #6
Mark Seaborn
Please add a BUG= field referencing the issue that motivated the change. That's BUG=358417, right? ...
5 years, 8 months ago (2015-04-24 00:53:25 UTC) #7
hidehiko
Thank you for review. jln@, friendly ping? https://codereview.chromium.org/1085583005/diff/60001/components/nacl/browser/nacl_process_host.cc File components/nacl/browser/nacl_process_host.cc (right): https://codereview.chromium.org/1085583005/diff/60001/components/nacl/browser/nacl_process_host.cc#newcode269 components/nacl/browser/nacl_process_host.cc:269: // Note: ...
5 years, 8 months ago (2015-04-24 10:05:18 UTC) #8
Mark Seaborn
In case you missed this comment: "Please add a BUG= field referencing the issue that ...
5 years, 8 months ago (2015-04-24 14:26:13 UTC) #9
hidehiko
On 2015/04/24 14:26:13, Mark Seaborn wrote: > In case you missed this comment: "Please add ...
5 years, 8 months ago (2015-04-24 18:07:53 UTC) #10
hidehiko
Julien, friendly ping? - hidehiko On 2015/04/24 18:07:53, hidehiko wrote: > On 2015/04/24 14:26:13, Mark ...
5 years, 8 months ago (2015-04-27 17:44:41 UTC) #11
jln (very slow on Chromium)
lgtm because this seems like a net improvement, but I'm not very comfortable with that ...
5 years, 7 months ago (2015-04-29 22:54:45 UTC) #12
jln (very slow on Chromium)
abarth: do you have any opinion on whether GURL was design to take potentially hostile ...
5 years, 7 months ago (2015-04-29 22:56:23 UTC) #13
palmer
Easy or hard, we simply have to make sure GURL can handle hostile inputs.
5 years, 7 months ago (2015-04-29 23:16:19 UTC) #14
hidehiko
On 2015/04/29 23:16:19, palmer wrote: > Easy or hard, we simply have to make sure ...
5 years, 7 months ago (2015-04-30 04:14:01 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085583005/120001
5 years, 7 months ago (2015-04-30 04:14:12 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/48077) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 7 months ago (2015-04-30 04:17:30 UTC) #20
hidehiko
On 2015/04/30 04:17:30, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
5 years, 7 months ago (2015-04-30 06:18:42 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1085583005/140001
5 years, 7 months ago (2015-04-30 06:19:49 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-04-30 07:03:59 UTC) #25
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/0e949f991ae48c1f4ef91e78a96f986931093220 Cr-Commit-Position: refs/heads/master@{#327666}
5 years, 7 months ago (2015-04-30 07:05:38 UTC) #26
lpique
5 years, 7 months ago (2015-05-01 21:45:10 UTC) #28
Message was sent while issue was closed.
I'll send out the fix shortly.

https://codereview.chromium.org/1085583005/diff/140001/components/nacl/browse...
File components/nacl/browser/nacl_host_message_filter.cc (right):

https://codereview.chromium.org/1085583005/diff/140001/components/nacl/browse...
components/nacl/browser/nacl_host_message_filter.cc:208: for (size_t i = 0;
request_list.size(); ++i) {
crbug.com/483633

Powered by Google App Engine
This is Rietveld 408576698