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

Issue 193313002: Pepper: Move GetSandboxISA() to PPB_NaCl_Private. (Closed)

Created:
6 years, 9 months ago by teravest
Modified:
6 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, tzik, raymes+watch_chromium.org, teravest+watch_chromium.org, yzshen+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, binji, ihf+watch_chromium.org
Visibility:
Public.

Description

Pepper: Move GetSandboxISA() to PPB_NaCl_Private. This is part of a series of changes to move the "trusted plugin" code inside ppapi/native_client. I was moving the logic for JsonManifest and PNaClManifest when I noticed that PNaClManifest depends on GetSandboxISA(), and moving that seemed big enough to justify its own change. I think that I preserved the architecture logic in arch_x86/sandbox_isa.cc, but it would merit some careful review. BUG=239656 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=257196

Patch Set 1 #

Patch Set 2 : nexe_arch.h cleanup #

Total comments: 6

Patch Set 3 : Fixes for dmichael #

Total comments: 5

Patch Set 4 : More fixes #

Total comments: 3

Patch Set 5 : Fixes for dmichael #

Total comments: 10

Patch Set 6 : Fixes for mseaborn #

Patch Set 7 : small string fix #

Patch Set 8 : Unused variable fixes #

Patch Set 9 : Compile fix on windows #

Patch Set 10 : nacl_interface threading fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -139 lines) Patch
M components/nacl.gyp View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M components/nacl/renderer/ppb_nacl_private_impl.cc View 1 2 3 4 5 3 chunks +7 lines, -1 line 0 comments Download
A components/nacl/renderer/sandbox_arch.h View 1 2 3 4 5 1 chunk +18 lines, -0 lines 0 comments Download
A components/nacl/renderer/sandbox_arch.cc View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_nacl_private.idl View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/c/private/ppb_nacl_private.h View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download
D ppapi/native_client/src/trusted/plugin/arch_arm/sandbox_isa.cc View 1 chunk +0 lines, -18 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/arch_mips/sandbox_isa.cc View 1 chunk +0 lines, -18 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/arch_x86/sandbox_isa.cc View 1 chunk +0 lines, -28 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/nexe_arch.h View 1 1 chunk +0 lines, -31 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.cc View 1 2 3 4 5 4 chunks +5 lines, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.gypi View 1 chunk +0 lines, -18 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_coordinator.cc View 1 2 3 4 5 6 7 8 9 5 chunks +8 lines, -4 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.h View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -5 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_resources.cc View 1 2 3 4 5 6 7 8 9 4 chunks +15 lines, -8 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/pnacl_translate_thread.cc View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 39 (0 generated)
teravest
6 years, 9 months ago (2014-03-10 21:38:46 UTC) #1
dmichael (off chromium)
I haven't looked at everything, but here are some early comments based on our discussion ...
6 years, 9 months ago (2014-03-10 22:49:35 UTC) #2
teravest
Thanks for the quick review. On Mon, Mar 10, 2014 at 4:49 PM, <dmichael@chromium.org> wrote: ...
6 years, 9 months ago (2014-03-11 18:47:36 UTC) #3
dmichael (off chromium)
https://codereview.chromium.org/193313002/diff/40001/components/nacl/renderer/sandbox_isa.cc File components/nacl/renderer/sandbox_isa.cc (right): https://codereview.chromium.org/193313002/diff/40001/components/nacl/renderer/sandbox_isa.cc#newcode35 components/nacl/renderer/sandbox_isa.cc:35: return kNexeArchX86_64; That doesn't seem right for Linux 32 ...
6 years, 9 months ago (2014-03-11 19:00:15 UTC) #4
teravest
On Tue, Mar 11, 2014 at 1:00 PM, <dmichael@chromium.org> wrote: > > https://codereview.chromium.org/193313002/diff/40001/components/nacl/renderer/sandbox_isa.cc > File ...
6 years, 9 months ago (2014-03-11 19:24:22 UTC) #5
dmichael (off chromium)
lgtm https://codereview.chromium.org/193313002/diff/60001/components/nacl/renderer/sandbox_isa.cc File components/nacl/renderer/sandbox_isa.cc (right): https://codereview.chromium.org/193313002/diff/60001/components/nacl/renderer/sandbox_isa.cc#newcode29 components/nacl/renderer/sandbox_isa.cc:29: if (base::win::OSInfo::GetInstance()->architecture() == X64_ARCHITECTURE) Wasn't there a comment ...
6 years, 9 months ago (2014-03-11 21:58:03 UTC) #6
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-11 22:09:39 UTC) #7
teravest1
On Tue, Mar 11, 2014 at 3:58 PM, <dmichael@chromium.org> wrote: > lgtm > > > ...
6 years, 9 months ago (2014-03-11 22:09:41 UTC) #8
teravest
The CQ bit was unchecked by teravest@chromium.org
6 years, 9 months ago (2014-03-11 22:09:44 UTC) #9
teravest
+mseaborn for components/nacl.gyp
6 years, 9 months ago (2014-03-11 22:10:23 UTC) #10
Mark Seaborn
LGTM https://codereview.chromium.org/193313002/diff/80001/components/nacl.gyp File components/nacl.gyp (right): https://codereview.chromium.org/193313002/diff/80001/components/nacl.gyp#newcode149 components/nacl.gyp:149: 'nacl/renderer/sandbox_isa.cc', How about calling these "sandbox_arch.{cc,h}"? "arch" is ...
6 years, 9 months ago (2014-03-12 18:24:13 UTC) #11
teravest
Thanks. On Wed, Mar 12, 2014 at 12:24 PM, <mseaborn@chromium.org> wrote: > LGTM > > ...
6 years, 9 months ago (2014-03-12 20:05:41 UTC) #12
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-12 21:44:37 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/193313002/140001
6 years, 9 months ago (2014-03-12 21:45:44 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-12 23:59:48 UTC) #15
commit-bot: I haz the power
Retried try job too often on win_x64_rel for step(s) base_unittests, chrome_elf_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_x64_rel&number=84307
6 years, 9 months ago (2014-03-12 23:59:48 UTC) #16
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-13 15:30:31 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/193313002/160001
6 years, 9 months ago (2014-03-13 15:30:34 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 15:36:40 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 9 months ago (2014-03-13 15:36:41 UTC) #20
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-13 15:39:53 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/193313002/160001
6 years, 9 months ago (2014-03-13 15:40:07 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 15:47:07 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg tryserver.chromium on linux_chromium_clang_dbg
6 years, 9 months ago (2014-03-13 15:47:08 UTC) #24
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-13 17:10:52 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/193313002/160001
6 years, 9 months ago (2014-03-13 17:12:50 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 17:20:39 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-13 17:20:40 UTC) #28
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-13 19:26:37 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/193313002/160001
6 years, 9 months ago (2014-03-13 19:28:02 UTC) #30
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 21:07:00 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_rel
6 years, 9 months ago (2014-03-13 21:07:01 UTC) #32
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-13 21:11:13 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/193313002/180001
6 years, 9 months ago (2014-03-13 21:17:05 UTC) #34
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-13 21:28:41 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on win_chromium_compile_dbg
6 years, 9 months ago (2014-03-13 21:28:43 UTC) #36
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 9 months ago (2014-03-14 16:49:08 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/193313002/180001
6 years, 9 months ago (2014-03-14 16:49:45 UTC) #38
commit-bot: I haz the power
6 years, 9 months ago (2014-03-14 21:08:04 UTC) #39
Message was sent while issue was closed.
Change committed as 257196

Powered by Google App Engine
This is Rietveld 408576698