diff options
author | wfh <wfh@chromium.org> | 2015-05-07 16:44:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-07 23:45:32 +0000 |
commit | ec1f735bc000881c053caa629bf1972102cbf5f8 (patch) | |
tree | 18cf7ec43d627cb99727bd427bdcd65128afe9fa /content/browser/plugin_service_impl.cc | |
parent | 282351bf126ca09cb5c3b9bf4663a52dc7f355e3 (diff) | |
download | chromium_src-ec1f735bc000881c053caa629bf1972102cbf5f8.zip chromium_src-ec1f735bc000881c053caa629bf1972102cbf5f8.tar.gz chromium_src-ec1f735bc000881c053caa629bf1972102cbf5f8.tar.bz2 |
Add Infobar when NPAPI plugin is not found.
When a plugin cannot be found, and NPAPI plugins are disabled - try and determine if it's probably an NPAPI plugin and if so display an infobar about NPAPI deprecation to the user. This aims to catch the case of plugins suddenly not working after M42.
This is the second part of two CLs to better inform users about the NPAPI deprecation.
See mocks - https://docs.google.com/document/d/1hwSFxMKL1Q2FVNAqmy1GxiZZb0Df8PO_oCkXnUk2QpQ/edit
BUG=380227
Review URL: https://codereview.chromium.org/1122683002
Cr-Commit-Position: refs/heads/master@{#328881}
Diffstat (limited to 'content/browser/plugin_service_impl.cc')
-rw-r--r-- | content/browser/plugin_service_impl.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc index b4c2582..12e7bfa 100644 --- a/content/browser/plugin_service_impl.cc +++ b/content/browser/plugin_service_impl.cc @@ -481,7 +481,8 @@ void PluginServiceImpl::GetAllowedPluginForOpenChannelToPlugin( client)); if (filter_) { DCHECK_EQ(WebPluginInfo::PLUGIN_TYPE_NPAPI, info.type); - filter_->NPAPIPluginLoaded(render_process_id, render_frame_id, info); + filter_->NPAPIPluginLoaded(render_process_id, render_frame_id, mime_type, + info); } } |