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

Issue 397243004: Pepper: Remove trusted plugin loadable module. (Closed)

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

Description

Pepper: Remove trusted plugin loadable module. This change links the trusted plugin into the renderer, making it easier for the trusted plugin to use libraries in Chromium. This removes the ppGoogleNaClPlugin loadable module file on various platforms. This is part of a larger effort to remove the "trusted plugin" used to bootstrap NaCl plugins. It introduces an "internal_module" interface for setting the value returned by pp::Module::Get(). This is so that both the trusted plugin and the remoting plugin can be linked into the renderer. However, I believe this is safe because the trusted plugin runs in-process and the remoting plugin runs out-of-process. BUG=394497 R=dmichael@chromium.org, mseaborn@chromium.org, phajdan.jr@chromium.org, thestig@chromium.org, wez@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287071 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287580

Patch Set 1 : #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : fix broker test #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : fixes for mseaborn #

Total comments: 2

Patch Set 7 : fix header guard #

Patch Set 8 : tiny gyp/gn fixes #

Patch Set 9 : upload for recommit after chromite fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -321 lines) Patch
M chrome/browser_tests.isolate View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome.isolate View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_dll_bundle.gypi View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/chrome_installer.gypi View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -18 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 2 chunks +4 lines, -9 lines 0 comments Download
M chrome/installer/linux/common/installer.include View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/installer/mini_installer.gyp View 1 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/installer/mini_installer.gypi View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/installer/mini_installer/chrome.release View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/interactive_ui_tests.isolate View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/chromeos/autotest/files/client/deps/chrome_test/setup_test_links.sh View 1 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/nacl/nacl_browsertest_util.cc View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/ppapi/ppapi_test.cc View 1 2 3 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/tools/build/chromeos/FILES.cfg View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/tools/build/linux/FILES.cfg View 1 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/tools/build/mac/dump_product_syms View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M chrome/tools/build/win/FILES.cfg View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -10 lines 0 comments Download
M chrome/unit_tests.isolate View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M components/nacl.gyp View 1 2 3 4 5 2 chunks +1 line, -1 line 0 comments Download
M ppapi/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
A ppapi/cpp/private/internal_module.h View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A ppapi/cpp/private/internal_module.cc View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/osx_ppapi/Info.plist View 1 1 chunk +0 lines, -46 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/osx_ppapi/ppNaClPlugin.r View 1 1 chunk +0 lines, -15 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.gyp View 1 2 3 4 5 2 chunks +5 lines, -61 lines 0 comments Download
M ppapi/native_client/src/trusted/plugin/plugin.gypi View 1 2 4 1 chunk +1 line, -0 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/ppapi.def View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h View 1 2 3 4 5 6 1 chunk +21 lines, -0 lines 0 comments Download
A ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.cc View 1 1 chunk +39 lines, -0 lines 0 comments Download
D ppapi/native_client/src/trusted/plugin/win/nacl_plugin.rc View 1 1 chunk +0 lines, -102 lines 0 comments Download
M ppapi/ppapi_cpp.gypi View 1 2 3 4 5 6 7 2 chunks +13 lines, -1 line 0 comments Download
M remoting/client/plugin/pepper_entrypoints.cc View 1 2 chunks +3 lines, -12 lines 0 comments Download
M remoting/remoting_client.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
dmichael (off chromium)
I think the approach overall looks good, if it will help you to do this. ...
6 years, 5 months ago (2014-07-18 18:08:37 UTC) #1
teravest
dmichael for ppapi/ mseaborn for components/nacl.gyp (and sanity) sky for chrome/ wez for remoting/ https://codereview.chromium.org/397243004/diff/40001/chrome/common/chrome_paths.cc ...
6 years, 4 months ago (2014-07-28 18:40:08 UTC) #2
Wez
remoting/ LGTM
6 years, 4 months ago (2014-07-28 19:49:34 UTC) #3
Mark Seaborn
It's great that this works! I have a suspicion that you might run into troubles ...
6 years, 4 months ago (2014-07-28 20:28:37 UTC) #4
teravest
I'll do a clobber build for the trybots-- thanks for suggesting that. Thankfully, the perf ...
6 years, 4 months ago (2014-07-28 22:04:22 UTC) #5
teravest
Hmm, I'm still getting telemetry failures from a fatal message in pepper_plugin_registry.cc. Hold off looking ...
6 years, 4 months ago (2014-07-29 12:59:17 UTC) #6
teravest
I was able to figure out the test failures, caused by deleting too much code ...
6 years, 4 months ago (2014-07-29 17:46:05 UTC) #7
Mark Seaborn
LGTM https://codereview.chromium.org/397243004/diff/330001/ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h File ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h (right): https://codereview.chromium.org/397243004/diff/330001/ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h#newcode5 ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h:5: #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_ENTRYPOINTS_H_ Nit: Add PPAPI_ prefix
6 years, 4 months ago (2014-07-29 18:13:18 UTC) #8
teravest
https://codereview.chromium.org/397243004/diff/330001/ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h File ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h (right): https://codereview.chromium.org/397243004/diff/330001/ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h#newcode5 ppapi/native_client/src/trusted/plugin/ppapi_entrypoints.h:5: #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PPAPI_ENTRYPOINTS_H_ On 2014/07/29 18:13:18, Mark Seaborn wrote: > ...
6 years, 4 months ago (2014-07-29 20:03:45 UTC) #9
dmichael (off chromium)
lgtm
6 years, 4 months ago (2014-07-29 23:08:40 UTC) #10
teravest
+phajdan.jr@chromium.org for chrome/installer/linux/common/installer.include
6 years, 4 months ago (2014-07-30 19:56:06 UTC) #11
Paweł Hajdan Jr.
chrome/installer/linux LGTM
6 years, 4 months ago (2014-07-31 10:02:04 UTC) #12
teravest
-sky +jochen for chrome/ since sky is now OOO.
6 years, 4 months ago (2014-07-31 14:13:57 UTC) #13
teravest
-jochen +thestig to get a reviewer in a US timezone.
6 years, 4 months ago (2014-07-31 16:01:23 UTC) #14
Lei Zhang
Can you update the corresponding .gn files with the same changes as your .gyp[i] files? ...
6 years, 4 months ago (2014-07-31 19:33:20 UTC) #15
teravest
The CQ bit was checked by teravest@chromium.org
6 years, 4 months ago (2014-08-01 15:44:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/teravest@chromium.org/397243004/370001
6 years, 4 months ago (2014-08-01 15:45:05 UTC) #17
teravest
Committed patchset #8 manually as 287071 (presubmit successful).
6 years, 4 months ago (2014-08-01 19:38:31 UTC) #18
xiyuan
Could this CL causing the chromeos build failure here. http://build.chromium.org/p/chromiumos.chromium/builders/X86%20%28chromium%29/builds/810/steps/BuildPackages/logs/stdio chromeos-chrome-38.0.2111.0_alpha-r1: Copying Chrome tests into ...
6 years, 4 months ago (2014-08-01 20:48:31 UTC) #19
teravest
Yes. This change removes that file. I looked through the chromeos overlay repository but didn't ...
6 years, 4 months ago (2014-08-01 21:05:19 UTC) #20
xiyuan
On 2014/08/01 21:05:19, teravest wrote: > Yes. This change removes that file. I looked through ...
6 years, 4 months ago (2014-08-01 21:12:27 UTC) #21
teravest
Reverted at r287090. Xiyuan, in what repository can I find chromeos-chrome-9999.ebuild? On Fri, Aug 1, ...
6 years, 4 months ago (2014-08-01 21:24:15 UTC) #22
Lei Zhang
When I needed to change .ebuild files, I get a CrOS checkout by following http://www.chromium.org/chromium-os/developer-guide ...
6 years, 4 months ago (2014-08-01 21:28:18 UTC) #23
xiyuan
Thank you for looking into this. chromeos-chrome-9999.ebuild is in chromium/chromiumos/overlays/chromiumos-overlay: https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/master/chromeos-base/chromeos-chrome/chromeos-chrome-9999.ebuild On Fri, Aug 1, ...
6 years, 4 months ago (2014-08-01 21:28:27 UTC) #24
teravest
Looking at that ebuild file, it looks like copying those test files is intentional, I ...
6 years, 4 months ago (2014-08-01 21:45:20 UTC) #25
teravest
I suspect that chromeos-chrome-9999.ebuild is missing some dependencies for the files it requires. Xiyuan, If ...
6 years, 4 months ago (2014-08-04 20:02:23 UTC) #26
xiyuan
On 2014/08/04 20:02:23, teravest wrote: > I suspect that chromeos-chrome-9999.ebuild is missing some dependencies for ...
6 years, 4 months ago (2014-08-04 20:12:51 UTC) #27
Mark Seaborn
It troubles me that this change got reverted for breaking the Chromium OS build, because ...
6 years, 4 months ago (2014-08-04 20:22:27 UTC) #28
teravest
It sounds like I was too eager to revert this. After committing this, I saw ...
6 years, 4 months ago (2014-08-04 20:49:41 UTC) #29
xiyuan
On 2014/08/04 20:49:41, teravest wrote: > It sounds like I was too eager to revert ...
6 years, 4 months ago (2014-08-04 21:08:41 UTC) #30
teravest
On Mon, Aug 4, 2014 at 3:08 PM, <xiyuan@chromium.org> wrote: > On 2014/08/04 20:49:41, teravest ...
6 years, 4 months ago (2014-08-05 15:38:05 UTC) #31
xiyuan
On 2014/08/05 15:38:05, teravest wrote: > I fought with this yesterday afternoon and this morning, ...
6 years, 4 months ago (2014-08-05 15:49:47 UTC) #32
teravest
On Tue, Aug 5, 2014 at 9:49 AM, <xiyuan@chromium.org> wrote: > On 2014/08/05 15:38:05, teravest ...
6 years, 4 months ago (2014-08-05 17:53:44 UTC) #33
xiyuan
On 2014/08/05 17:53:44, teravest wrote: > Okay, I finally got it to build without USE=chrome_internal ...
6 years, 4 months ago (2014-08-05 18:01:33 UTC) #34
teravest
6 years, 4 months ago (2014-08-05 19:53:30 UTC) #35
Message was sent while issue was closed.
Committed patchset #9 manually as 287580 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698