https://codereview.chromium.org/2369353002/diff/150001/chrome/browser/plugins/plugin_prefs.cc#newcode236
chrome/browser/plugins/plugin_prefs.cc:236: return POLICY_DISABLED;
On 2016/10/04 at 10:06:34, pastarmovj wrote:
> On 2016/09/30 14:34:53, asanka wrote:
This should propagate up to PluginService::GetPluginInfo(), correct?
I.e. if always_open_pdf_externally_ is true, then the PDF plugin would
appear to all callers of GetPluginInfo() as disabled?
If so, as far as the downloads code is concerned, the behavior should be equivalent to disabling the PDF plugin. Is this not the case?
Once the PDF plugin is disabled, the downloads code should automatically
treat it as a regular download. The determination of whether a PDF
should be opened in the browser takes into consideration whether there
is a sandboxed plugin available to open the MIME type
(https://cs.chromium.org/chromium/src/chrome/browser/download/download_target_determiner.cc?rcl=1475652159&l=461).
Is this not sufficient? Are there issues with how PDFs are handled when
the plugin is disabled via 'aways open PDF externally' in addition to
not triggering the auto-open logic?
Comment 1 by pastarmovj@chromium.org
, Oct 6 2016