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

Issue 3181003: Fix "missing plugin" error in linux chrome.... (Closed)

Created:
10 years, 4 months ago by gene
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Fix "missing plugin" error in linux chrome. On linux first check succeeded, while next one will fail and no plugin information got returned. So, I am inverting logic a little bit. IFF check for plugin file succeeded, we omit all subsequent for this file in the process. BUG=none TEST=Check PDF plugin is working in Chrome linux sandbox, and no PDF plugin is in Chromium build. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55784

Patch Set 1 #

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

Messages

Total messages: 6 (0 generated)
gene
Issue came back :), it is failing in Chrome now. So, I inverted evan's logic ...
10 years, 4 months ago (2010-08-11 19:21:40 UTC) #1
Evan Martin
LGTM, thank you for fixing it!
10 years, 4 months ago (2010-08-11 19:25:13 UTC) #2
viettrungluu
http://codereview.chromium.org/3181003/diff/1/2 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/3181003/diff/1/2#newcode112 chrome/common/pepper_plugin_registry.cc:112: if (skip_pdf_file_check || file_util::PathExists(path)) { This isn't good for ...
10 years, 4 months ago (2010-08-11 19:34:34 UTC) #3
viettrungluu
(Actually, I'm not sure if it results in spew; maybe the check just fails. That'd ...
10 years, 4 months ago (2010-08-11 19:35:30 UTC) #4
Evan Martin
http://codereview.chromium.org/3181003/diff/1/2 File chrome/common/pepper_plugin_registry.cc (right): http://codereview.chromium.org/3181003/diff/1/2#newcode112 chrome/common/pepper_plugin_registry.cc:112: if (skip_pdf_file_check || file_util::PathExists(path)) { On 2010/08/11 19:34:34, viettrungluu ...
10 years, 4 months ago (2010-08-11 19:39:51 UTC) #5
viettrungluu
10 years, 4 months ago (2010-08-11 19:46:26 UTC) #6
On 2010/08/11 19:39:51, Evan Martin wrote:
> http://codereview.chromium.org/3181003/diff/1/2
> File chrome/common/pepper_plugin_registry.cc (right):
> 
> http://codereview.chromium.org/3181003/diff/1/2#newcode112
> chrome/common/pepper_plugin_registry.cc:112: if (skip_pdf_file_check ||
> file_util::PathExists(path)) {
> On 2010/08/11 19:34:34, viettrungluu wrote:
> > This isn't good for Chromium, since it'll result in spew (when it tries to
do
> > the check from within the sandbox).
> > 
> > The problem is that we're trying to push a 3-state thing
> > (unknown/known-no-pdf/known-has-pdf) into a boolean....
> 
> PathExists doesn't spew.

Right. (Of course not, being a query....) LGTM.

Powered by Google App Engine
This is Rietveld 408576698