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

Issue 11414180: Add a gyp flag to allow removing dependency on ppapi. (Closed)

Created:
8 years ago by nilesh
Modified:
7 years, 11 months ago
Reviewers:
palmer, brettw, Jay Civelli
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, markusheintz_, jschuh
Visibility:
Public.

Description

Add a gyp flag to allow removing dependency on ppapi. - Introduces a new macro ENABLE_PLUGINS - Create a new PluginDelegateHelper interface which is used by RenderViewImpl This flag will be used to remove all plugins related code from the Android build. BUG=162667 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171162

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Added PluginDelegateHelper #

Patch Set 4 : #

Patch Set 5 : Fix build #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : Addressed Jay's comments and rebase #

Total comments: 22

Patch Set 8 : Addressed Brett's comments #

Patch Set 9 : PLuginDelegateHelper -> RenderViewPepperHelper #

Patch Set 10 : enable_ppapi -> enable_plugins #

Patch Set 11 : ifdef PluginMain and WorkerMain #

Total comments: 2

Patch Set 12 : Fixed comment in build/common.gypi #

Patch Set 13 : Rebase #

Patch Set 14 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+465 lines, -196 lines) Patch
M build/common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 2 3 4 5 6 7 8 9 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 6 7 8 9 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +10 lines, -1 line 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -1 line 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +12 lines, -4 lines 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -0 lines 0 comments Download
M content/app/content_main_runner.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/plugin_data_remover_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +32 lines, -15 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/all_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +12 lines, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M content/content_ppapi_plugin.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +23 lines, -19 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +13 lines, -3 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +6 lines, -0 lines 0 comments Download
M content/renderer/media/media_stream_dispatcher.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 11 chunks +65 lines, -99 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +18 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 19 chunks +42 lines, -43 lines 0 comments Download
A content/renderer/render_view_pepper_helper.h View 1 2 3 4 5 6 7 8 1 chunk +116 lines, -0 lines 0 comments Download
A content/renderer/render_view_pepper_helper.cc View 1 2 3 4 5 6 7 8 1 chunk +50 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
nilesh
8 years ago (2012-11-27 23:03:42 UTC) #1
nilesh
8 years ago (2012-11-29 18:29:22 UTC) #2
Jay Civelli
LGTM with nits. https://codereview.chromium.org/11414180/diff/4002/content/browser/plugin_service_impl.cc File content/browser/plugin_service_impl.cc (right): https://codereview.chromium.org/11414180/diff/4002/content/browser/plugin_service_impl.cc#newcode271 content/browser/plugin_service_impl.cc:271: #if defined(ENABLE_PPAPI) Maybe you could simply ...
8 years ago (2012-11-29 18:57:43 UTC) #3
nilesh
https://codereview.chromium.org/11414180/diff/4002/content/browser/plugin_service_impl.cc File content/browser/plugin_service_impl.cc (right): https://codereview.chromium.org/11414180/diff/4002/content/browser/plugin_service_impl.cc#newcode271 content/browser/plugin_service_impl.cc:271: #if defined(ENABLE_PPAPI) On 2012/11/29 18:57:43, Jay Civelli wrote: > ...
8 years ago (2012-11-29 22:54:03 UTC) #4
nilesh
ping. Brett, Can you please take a look. Thanks.
8 years ago (2012-11-29 23:25:55 UTC) #5
brettw
https://codereview.chromium.org/11414180/diff/4002/content/browser/plugin_data_remover_impl.cc File content/browser/plugin_data_remover_impl.cc (right): https://codereview.chromium.org/11414180/diff/4002/content/browser/plugin_data_remover_impl.cc#newcode23 content/browser/plugin_data_remover_impl.cc:23: #if defined(ENABLE_PPAPI) #ifdefed includes should go below all the ...
8 years ago (2012-11-30 23:18:12 UTC) #6
nilesh
Addressed comments. PTAL. https://codereview.chromium.org/11414180/diff/2005/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/11414180/diff/2005/chrome/chrome_browser.gypi#newcode2364 chrome/chrome_browser.gypi:2364: '../ppapi/ppapi_internal.gyp:ppapi_ipc', # For PpapiMsg_LoadPlugin On 2012/11/30 ...
8 years ago (2012-12-01 00:41:34 UTC) #7
nilesh
Adding palmer for content/common/all_messages.h
8 years ago (2012-12-01 00:45:58 UTC) #8
nilesh
Renamed PluginDelegateHelper to RenderViewPepperHelper.
8 years ago (2012-12-01 01:20:49 UTC) #9
palmer
Although you only wanted my IPC security review, I've decided to make your life a ...
8 years ago (2012-12-03 21:31:16 UTC) #10
brettw
So maybe we should be using ENABLE_PLUGINS instead? That makes more sense to me, and ...
8 years ago (2012-12-03 21:44:12 UTC) #11
nilesh
I am happy to explore removing npapi too. I guess most of the code we ...
8 years ago (2012-12-03 21:58:47 UTC) #12
brettw
I think that plan sounds reasonable (renaming the flag ENABLE_PLUGINS now, do the rest in ...
8 years ago (2012-12-03 22:02:47 UTC) #13
nilesh
On 2012/12/03 22:02:47, brettw wrote: > I think that plan sounds reasonable (renaming the flag ...
8 years ago (2012-12-03 23:39:14 UTC) #14
palmer
LGTM from an IPC security review perspective; whether or not the NPAPI change incurs an ...
8 years ago (2012-12-03 23:50:51 UTC) #15
nilesh
Thanks Chris. Will add you on CLs related to this. https://codereview.chromium.org/11414180/diff/12012/build/common.gypi File build/common.gypi (right): https://codereview.chromium.org/11414180/diff/12012/build/common.gypi#newcode379 ...
8 years ago (2012-12-04 00:21:48 UTC) #16
nilesh
Hi Brett, Does this look ok to you?
8 years ago (2012-12-04 17:47:40 UTC) #17
brettw
lgtm
8 years ago (2012-12-04 23:13:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/11414180/15008
8 years ago (2012-12-04 23:37:03 UTC) #19
commit-bot: I haz the power
Failed to apply patch for content/browser/plugin_data_remover_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-04 23:37:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/11414180/8019
8 years ago (2012-12-04 23:42:16 UTC) #21
commit-bot: I haz the power
Failed to apply patch for content/browser/plugin_data_remover_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-04 23:42:23 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/11414180/16001
8 years ago (2012-12-05 00:45:19 UTC) #23
commit-bot: I haz the power
Change committed as 171162
8 years ago (2012-12-05 05:24:57 UTC) #24
qinmin
On 2012/12/05 05:24:57, I haz the power (commit-bot) wrote: > Change committed as 171162 This ...
7 years, 11 months ago (2013-01-02 23:45:05 UTC) #25
nilesh
7 years, 11 months ago (2013-01-03 00:19:55 UTC) #26
Message was sent while issue was closed.
On 2013/01/02 23:45:05, qinmin wrote:
> On 2012/12/05 05:24:57, I haz the power (commit-bot) wrote:
> > Change committed as 171162
> 
> This change breaks the old style youtube embeds on android. We still need the
> plugin support, can we split ppapi plugin from regular plugins?
> https://code.google.com/p/chromium/issues/detail?id=167971


As discussed offline, this CL is not the issue as it mainly deals with pepper
plugins. The offending CL is a more recent change:
https://chromiumcodereview.appspot.com/11615002

Powered by Google App Engine
This is Rietveld 408576698