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

Issue 799643004: Combine PDF plugin into the Chromium binary. (Closed)

Created:
6 years ago by jam
Modified:
4 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Combine PDF plugin into the Chromium binary. On Windows, this moves it to chrome_child.dll. Overall binary sizes is 4.5 MB smaller (chrome_child.dll gets 3.6 MB larger while we drop the 8.1 MB pdf.dll). On Mac, the binary is 6.6 MB smaller. On Linux, it's 7MB smaller. This is from official release builds, after stripping on Linux. The size savings are because we don't ship duplicate versions of V8, and also the PDF plugin uses some of base and net. This depends on OOP PDF, since otherwise the V8 isolates for the plugin and Blink interact badly. That got turned on a few weeks ago. BUG=453844 Committed: https://crrev.com/dc0e4390c0364515fa360c5292a4389784580a48 Cr-Commit-Position: refs/heads/master@{#314575}

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : fixes #

Patch Set 4 : more fixes #

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : rebase #

Patch Set 8 : try after pdfium fixed #

Patch Set 9 : #

Patch Set 10 : fix gn #

Patch Set 11 : #

Total comments: 2

Patch Set 12 : rebase #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : rebase #

Patch Set 17 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -822 lines) Patch
M build/all.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/app/chrome_main_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/open_with_browser.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/component_loader.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/printing/print_preview_dialog_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/printing/print_preview_pdf_generated_browsertest.cc View 1 2 3 4 5 6 8 chunks +20 lines, -83 lines 0 comments Download
M chrome/browser/resources/pdf/pdf_extension_test.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/child/pdf_child_init.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +14 lines, -9 lines 0 comments Download
M chrome/chrome.isolate View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/chrome_dll.gypi View 1 2 3 4 3 chunks +10 lines, -3 lines 0 comments Download
M chrome/chrome_dll_bundle.gypi View 2 chunks +0 lines, -4 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 2 chunks +5 lines, -14 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/chrome_content_client.h View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/common/chrome_content_client.cc View 1 2 3 4 5 6 4 chunks +33 lines, -39 lines 0 comments Download
M chrome/common/chrome_content_client_constants.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 2 chunks +0 lines, -15 lines 0 comments Download
M chrome/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +1 line, -1 line 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/utility/printing_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/utility/printing_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 8 chunks +13 lines, -188 lines 0 comments Download
M pdf/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -26 lines 0 comments Download
D pdf/Info.plist View 1 2 1 chunk +0 lines, -44 lines 0 comments Download
M pdf/pdf.h View 2 chunks +90 lines, -1 line 0 comments Download
M pdf/pdf.cc View 1 2 3 4 5 7 chunks +30 lines, -129 lines 0 comments Download
D pdf/pdf.def View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M pdf/pdf.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +4 lines, -123 lines 1 comment Download
D pdf/pdf.rc View 1 2 1 chunk +0 lines, -104 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
cpu_(ooo_6.6-7.5)
lgtm Note, I did not looked carefully at the gyp madness. https://codereview.chromium.org/799643004/diff/240001/chrome/renderer/DEPS File chrome/renderer/DEPS (right): ...
5 years, 10 months ago (2015-02-02 22:55:23 UTC) #7
jam
On 2015/02/02 22:55:23, cpu wrote: > lgtm Thanks, although this isn't quite ready yet :) ...
5 years, 10 months ago (2015-02-02 23:15:52 UTC) #8
jam
Ok this is now ready. The patch itself didn't change much, just the dependent changes ...
5 years, 10 months ago (2015-02-03 19:11:38 UTC) #10
cpu_(ooo_6.6-7.5)
lgtm
5 years, 10 months ago (2015-02-04 17:33:14 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/799643004/380001
5 years, 10 months ago (2015-02-04 17:35:48 UTC) #13
commit-bot: I haz the power
Committed patchset #17 (id:380001)
5 years, 10 months ago (2015-02-04 17:40:52 UTC) #14
commit-bot: I haz the power
Patchset 17 (id:??) landed as https://crrev.com/dc0e4390c0364515fa360c5292a4389784580a48 Cr-Commit-Position: refs/heads/master@{#314575}
5 years, 10 months ago (2015-02-04 17:41:51 UTC) #15
kelvinp
A revert of this CL (patchset #17 id:380001) has been created in https://codereview.chromium.org/899033002/ by kelvinp@chromium.org. ...
5 years, 10 months ago (2015-02-04 17:53:32 UTC) #16
jochen (gone - plz use gerrit)
https://codereview.chromium.org/799643004/diff/380001/pdf/pdf.gyp File pdf/pdf.gyp (left): https://codereview.chromium.org/799643004/diff/380001/pdf/pdf.gyp#oldcode19 pdf/pdf.gyp:19: '../ppapi/ppapi.gyp:ppapi_cpp', this breaks compilation with disable_nacl=1, because nothing pulls ...
5 years, 10 months ago (2015-02-11 08:30:02 UTC) #18
Jiang Jiang
On 2015/02/11 08:30:02, jochen (slow) wrote: > https://codereview.chromium.org/799643004/diff/380001/pdf/pdf.gyp > File pdf/pdf.gyp (left): > > https://codereview.chromium.org/799643004/diff/380001/pdf/pdf.gyp#oldcode19 ...
5 years, 10 months ago (2015-02-12 17:14:42 UTC) #19
jam
On 2015/02/12 17:14:42, Jiang Jiang wrote: > On 2015/02/11 08:30:02, jochen (slow) wrote: > > ...
5 years, 10 months ago (2015-02-12 21:45:39 UTC) #20
Jiang Jiang
BTW, is it intentional for this change to make --disable-out-of-process-pdf useless?
5 years, 10 months ago (2015-02-17 14:05:47 UTC) #21
jam
5 years, 10 months ago (2015-02-18 16:34:48 UTC) #22
Message was sent while issue was closed.
On 2015/02/17 14:05:47, Jiang Jiang wrote:
> BTW, is it intentional for this change to make --disable-out-of-process-pdf
> useless?

yes, it's incompatible

Powered by Google App Engine
This is Rietveld 408576698