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

Issue 11577031: Exclude more plugins code for Android (Closed)

Created:
8 years ago by nilesh
Modified:
8 years ago
Reviewers:
Yaron, jam
CC:
chromium-reviews, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Exclude more plugins code for Android This CL fixes all plugin related link errors during component build of content_shell_apk BUG=158821, 162667

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -21 lines) Patch
M chrome/browser/browser_process_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 4 chunks +4 lines, -0 lines 0 comments Download
M content/browser/plugin_service_impl.h View 2 chunks +13 lines, -13 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 7 chunks +10 lines, -4 lines 1 comment Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 chunk +4 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
nilesh
8 years ago (2012-12-15 01:12:05 UTC) #1
jam
https://codereview.chromium.org/11577031/diff/1/content/browser/plugin_service_impl.cc File content/browser/plugin_service_impl.cc (right): https://codereview.chromium.org/11577031/diff/1/content/browser/plugin_service_impl.cc#newcode267 content/browser/plugin_service_impl.cc:267: #if defined(ENABLE_PLUGINS) what would be the point of including ...
8 years ago (2012-12-17 17:54:52 UTC) #2
nilesh
On 2012/12/17 17:54:52, John Abd-El-Malek wrote: > https://codereview.chromium.org/11577031/diff/1/content/browser/plugin_service_impl.cc > File content/browser/plugin_service_impl.cc (right): > > https://codereview.chromium.org/11577031/diff/1/content/browser/plugin_service_impl.cc#newcode267 ...
8 years ago (2012-12-17 18:52:18 UTC) #3
jam
On 2012/12/17 18:52:18, nileshagrawal1 wrote: > On 2012/12/17 17:54:52, John Abd-El-Malek wrote: > > > ...
8 years ago (2012-12-17 21:15:02 UTC) #4
nilesh
8 years ago (2012-12-18 23:26:41 UTC) #5
On 2012/12/17 21:15:02, John Abd-El-Malek wrote:
> On 2012/12/17 18:52:18, nileshagrawal1 wrote:
> > On 2012/12/17 17:54:52, John Abd-El-Malek wrote:
> > >
> >
>
https://codereview.chromium.org/11577031/diff/1/content/browser/plugin_servic...
> > > File content/browser/plugin_service_impl.cc (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/11577031/diff/1/content/browser/plugin_servic...
> > > content/browser/plugin_service_impl.cc:267: #if defined(ENABLE_PLUGINS)
> > > what would be the point of including this file when ENABLE_PLUGINS isn't
> > > defined, and you already ifdef out a bunch of calls to it. i.e. what i'm
> > trying
> > > to get at is to ask do you really need to include this file in that case?
> > 
> > Removing PluginService altogether creates more ifdefs. In this CL I am not
> > actively removing calls to PluginService. The code in browser_process_impl
is
> > ifdefed out mainly because it needs PepperPluginInfo::ToWebPluginInfo (which
> is
> > defined in the excluded class pepper_plugin_registry.cc)
> > 
> > There are 3 options:
> > 1. Modify code in plugin_service_impl to handle the plugins disabled case.
> (this
> > CL)
> > 2. Provide an alternate implementation (a stub) which handles the plugins
> > disabled case. (https://codereview.chromium.org/11507017/)
> > 3. Remove PluginService all together: (CL
> > https://codereview.chromium.org/11615002/  not complete)
> >   I abandoned this approach as it required adding the most ifdefs.
> 
> I went through this change and that one, and it it seems that it's only
> marginally more ifdefs (i.e. if one considers that plugin_service_impl.cc now
> wouldn't need all the ifdefs). It's also more maintainable and easier to
> understand, i.e. ENABLE_PLUGIN really means plugins are enabled, not some of
the
> plugin code is compiled in while other isn't. So I would say that approach is
> better, since it seems that if plugins are disabled no one should be talking
to
> PluginService.

Thanks. Closing this issue in favor of https://codereview.chromium.org/11615002/

Powered by Google App Engine
This is Rietveld 408576698