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

Issue 11615002: Exclude PluginService for builds with enable_plugins==0 (Closed)

Created:
8 years ago by nilesh
Modified:
8 years ago
Reviewers:
Ilya Sherman, Yoyo Zhou, jam
CC:
chromium-reviews, MAD, jar (doing other things), jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, Ilya Sherman, stuartmorgan+watch_chromium.org
Visibility:
Public.

Description

Exclude PluginService for builds with enable_plugins==0 - Saves 140k in the final shared library (libchromeview.so) - Fixes all plugin related link errors during component build of content_shell_apk BUG=158821, 162667 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=174087

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Remove debug logging #

Total comments: 22

Patch Set 4 : Addressed comments. Excluded more files. Avoid sending ViewHostMsg_GetPlugins #

Total comments: 2

Patch Set 5 : ifdef out VersionHandler::OnGotPlugins #

Total comments: 3

Patch Set 6 : ifdef more narrowly in metrics_log.cc #

Patch Set 7 : Added comment #

Patch Set 8 : Rebase #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -24 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service.cc View 1 2 3 4 5 6 7 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_service_unittest.cc View 1 2 3 9 chunks +16 lines, -6 lines 0 comments Download
M chrome/browser/metrics/metrics_log.cc View 1 2 3 4 5 6 5 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/metrics/metrics_service.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/version_handler.cc View 1 2 3 4 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/loader/buffered_resource_handler.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/plugin_service_impl.cc View 1 2 3 4 5 6 7 4 chunks +0 lines, -6 lines 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 3 chunks +4 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 1 chunk +5 lines, -0 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M content/public/common/content_client.cc View 1 2 3 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 4 chunks +9 lines, -0 lines 0 comments Download
M content/renderer/renderer_main.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/renderer_webkitplatformsupport_impl.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
nilesh
Exclude PluginService for builds with enable_plugins==0 - Saves 120k in the final shared library (libchromeview.so) ...
8 years ago (2012-12-18 19:11:58 UTC) #1
nilesh
Hi John, Please take a look.
8 years ago (2012-12-18 19:13:24 UTC) #2
jam
thanks, just a bunch of comments to exclude more files https://codereview.chromium.org/11615002/diff/5001/chrome/browser/chrome_plugin_service_filter.cc File chrome/browser/chrome_plugin_service_filter.cc (right): https://codereview.chromium.org/11615002/diff/5001/chrome/browser/chrome_plugin_service_filter.cc#newcode153 ...
8 years ago (2012-12-19 01:55:15 UTC) #3
stuartmorgan
Thanks for tackling this! It'll definitely be helpful for iOS too. A couple of drive-by ...
8 years ago (2012-12-19 12:53:57 UTC) #4
nilesh
Addressed comments. Please take another look. https://codereview.chromium.org/11615002/diff/5001/chrome/browser/browser_process_impl.cc File chrome/browser/browser_process_impl.cc (right): https://codereview.chromium.org/11615002/diff/5001/chrome/browser/browser_process_impl.cc#newcode832 chrome/browser/browser_process_impl.cc:832: PluginFinder::GetInstance()->Init(); On 2012/12/19 ...
8 years ago (2012-12-19 21:07:44 UTC) #5
nilesh
I apologize for the rebase in the latest patch. It affects the patch set delta ...
8 years ago (2012-12-19 21:13:25 UTC) #6
nilesh
Adding owners for metrics and extensions. yoz: extensions isherman: metrics Please take a look.
8 years ago (2012-12-19 21:19:09 UTC) #7
jam
(looking through patch now, some preliminary comments) On 2012/12/19 21:19:09, nileshagrawal1 wrote: > Adding owners ...
8 years ago (2012-12-19 21:23:10 UTC) #8
jam
(ok i see the changes to extensions and metrics isn't trivial, readding them) https://codereview.chromium.org/11615002/diff/22004/chrome/chrome_browser.gypi File ...
8 years ago (2012-12-19 21:32:31 UTC) #9
jam
lgtm with the one nit in VersionHandler::OnGotPlugins would be great if all the plugin code ...
8 years ago (2012-12-19 21:35:02 UTC) #10
nilesh
Thanks for the review. I will handle removing all of chrome/browser/plugins in a subsequent CL. ...
8 years ago (2012-12-19 21:47:25 UTC) #11
Ilya Sherman
Hmm, this change is relatively invasive. What's the advantage to #ifdef'ing out all the callsites, ...
8 years ago (2012-12-19 22:45:57 UTC) #12
jam
On Wed, Dec 19, 2012 at 2:45 PM, <isherman@chromium.org> wrote: > Hmm, this change is ...
8 years ago (2012-12-19 23:03:33 UTC) #13
nilesh
Hi Ilya, Please take another look. https://codereview.chromium.org/11615002/diff/24005/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/11615002/diff/24005/chrome/browser/metrics/metrics_log.cc#newcode671 chrome/browser/metrics/metrics_log.cc:671: WritePluginList(plugin_list, write_as_xml); On ...
8 years ago (2012-12-19 23:18:29 UTC) #14
Ilya Sherman
metrics/ LGTM, thanks https://codereview.chromium.org/11615002/diff/24005/chrome/browser/metrics/metrics_log.cc File chrome/browser/metrics/metrics_log.cc (right): https://codereview.chromium.org/11615002/diff/24005/chrome/browser/metrics/metrics_log.cc#newcode671 chrome/browser/metrics/metrics_log.cc:671: WritePluginList(plugin_list, write_as_xml); On 2012/12/19 23:18:29, nileshagrawal1 ...
8 years ago (2012-12-19 23:45:44 UTC) #15
Yoyo Zhou
LGTM for extensions
8 years ago (2012-12-19 23:52:36 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nileshagrawal@chromium.org/11615002/24009
8 years ago (2012-12-20 00:12:53 UTC) #17
commit-bot: I haz the power
8 years ago (2012-12-20 02:56:59 UTC) #18
Message was sent while issue was closed.
Change committed as 174087

Powered by Google App Engine
This is Rietveld 408576698