Chromium Code Reviews
Help | Chromium Project | Sign in
(48)

Issue 3071027: Create a define for the gyp variable internal_pdf. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
4 years, 9 months ago by Robert Sesek
Modified:
4 years ago
CC:
chromium-reviews
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Create a define for the gyp variable internal_pdf. This allows #ifdef-ing out PDF code that should not be built in Chromium. BUG=51435 TEST=In Chromium, try to open a PDF. It should download, not show "Missing Plug-In".

Patch Set 1 #

Total comments: 1

Patch Set 2 : Move defines block #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M chrome/chrome_common.gypi View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pepper_plugin_registry.cc View 2 chunks +2 lines, -0 lines 0 comments Download
Trybot results:
Commit: CQ not working?

Messages

Total messages: 13 (0 generated)
Robert Sesek
4 years, 9 months ago (2010-08-06 22:22:48 UTC) #1
Mark Mentovai - out til August
http://codereview.chromium.org/3071027/diff/1/2 File build/common.gypi (right): http://codereview.chromium.org/3071027/diff/1/2#newcode450 build/common.gypi:450: 'defines': ['INTERNAL_PDF=1'], Blech. We don’t really need to leak ...
4 years, 9 months ago (2010-08-06 22:28:13 UTC) #2
gene
I think this issue become quite visible after I removed check for existence for PDF ...
4 years, 9 months ago (2010-08-06 22:39:12 UTC) #3
Robert Sesek
On 2010/08/06 22:39:12, gene wrote: > I think this issue become quite visible after I ...
4 years, 9 months ago (2010-08-06 22:49:00 UTC) #4
gene
On 2010/08/06 22:49:00, rsesek wrote: > On 2010/08/06 22:39:12, gene wrote: > > I think ...
4 years, 9 months ago (2010-08-06 22:53:10 UTC) #5
gene
On 2010/08/06 22:53:10, gene wrote: > On 2010/08/06 22:49:00, rsesek wrote: > > On 2010/08/06 ...
4 years, 9 months ago (2010-08-06 22:58:23 UTC) #6
Robert Sesek
On 2010/08/06 22:58:23, gene wrote: > On 2010/08/06 22:53:10, gene wrote: > > On 2010/08/06 ...
4 years, 9 months ago (2010-08-06 23:17:20 UTC) #7
Mark Mentovai - out til August
LGTM
4 years, 9 months ago (2010-08-06 23:23:26 UTC) #8
gene
On 2010/08/06 23:17:20, rsesek wrote: > On 2010/08/06 22:58:23, gene wrote: > > On 2010/08/06 ...
4 years, 9 months ago (2010-08-06 23:36:32 UTC) #9
Robert Sesek
On 2010/08/06 23:36:32, gene wrote: > They are surely not mutual exclusive. Just keep in ...
4 years, 9 months ago (2010-08-06 23:42:07 UTC) #10
gene
On 2010/08/06 23:42:07, rsesek wrote: > On 2010/08/06 23:36:32, gene wrote: > > They are ...
4 years, 9 months ago (2010-08-07 00:03:45 UTC) #11
Robert Sesek
On Fri, Aug 6, 2010 at 8:03 PM, <gene@chromium.org> wrote: > And this CL introduces ...
4 years, 9 months ago (2010-08-07 00:14:01 UTC) #12
viettrungluu
4 years, 9 months ago (2010-08-08 05:20:46 UTC) #13
The reason the check for the PDf plugin was removed was that in the Linux chroot
sandbox, the check cannot be performed (and thus always fails).

An only slightly-hackish fix is to introduce a flag (say,
"--force-pdf-plugin-detected"), and have the zygote do the file check and add
that to each renderer's command line. Then the original check in
PepperPluginRegistry::GetExtraPlugins() can be replaced with one which says "has
this flag || file exists".
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld ec887be