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

Issue 3114005: pepper: don't warn if PDF plugin is unavailable (Closed)

Created:
10 years, 4 months ago by Evan Martin
Modified:
9 years, 7 months ago
Reviewers:
gene, viettrungluu
CC:
chromium-reviews
Visibility:
Public.

Description

pepper: don't warn if PDF plugin is unavailable We preload plugins before we sandbox, then later attempt to fully load them once we're sandboxed. We can't ask whether the plugin exists at the second point because we don't have disk access at that point. So instead, the first time we're asked about plugins (before we're sandboxed), record whether the plugin is actually available and use that to skip loading it in the second pass. BUG=51546 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55609

Patch Set 1 #

Total comments: 3

Patch Set 2 : simpler #

Patch Set 3 : arg #

Patch Set 4 : revert #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -4 lines) Patch
M chrome/common/pepper_plugin_registry.cc View 1 2 1 chunk +11 lines, -4 lines 1 comment Download

Messages

Total messages: 8 (0 generated)
Evan Martin
10 years, 4 months ago (2010-08-10 18:07:52 UTC) #1
viettrungluu
LGTM in principle, just some nits. http://codereview.chromium.org/3114005/diff/1/2 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/3114005/diff/1/2#newcode112 chrome/common/pepper_plugin_registry.cc:112: #if !defined(GOOGLE_CHROME_BUILD) We ...
10 years, 4 months ago (2010-08-10 18:16:04 UTC) #2
gene1
I used a different approach to fix this issue, see here: http://codereview.chromium.org/3121002/show Also, I don't ...
10 years, 4 months ago (2010-08-10 18:32:23 UTC) #3
Evan Martin
Please take another look, it's much simpler now. Gene, I'm fixing a different issue: that ...
10 years, 4 months ago (2010-08-10 18:57:35 UTC) #4
viettrungluu
lgtm http://codereview.chromium.org/3114005/diff/11001/12001 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/3114005/diff/11001/12001#newcode104 chrome/common/pepper_plugin_registry.cc:104: // Once we're sandboxed, we can't know if ...
10 years, 4 months ago (2010-08-10 19:29:29 UTC) #5
gene1
Sorry, my brain is numb today :). But I think this will fix your issue ...
10 years, 4 months ago (2010-08-10 19:46:20 UTC) #6
viettrungluu
Gene, your change will result in the function doing the wrong thing if called from ...
10 years, 4 months ago (2010-08-10 19:50:53 UTC) #7
gene1
10 years, 4 months ago (2010-08-10 20:09:28 UTC) #8
Hi evan,
I am looking at the latest version of your code. I am not Linux expert, so
it looks quite confusing to me. I just wanted to check that everything is
working as expected.
When I was testing this issue, it looked like GetExtraPlugins was from zygot
and then from the renderer process. Will the static variable persist its
state from zygot to renderer? (is it some kind of fork trick?)
If that is the case, it is LGTM from me.
Sorry, for the previous confusions :)
Gene

On Tue, Aug 10, 2010 at 11:57 AM, <evan@chromium.org> wrote:

> Please take another look, it's much simpler now.
>
> Gene, I'm fixing a different issue: that we now print a warning when the
> file
> doesn't exist.  I looked at your previous patch for inspiration on how to
> fix
> this issue.
>
>
> http://codereview.chromium.org/3114005/show
>

Powered by Google App Engine
This is Rietveld 408576698