diff options
author | wfh <wfh@chromium.org> | 2015-05-01 14:58:30 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-05-01 21:59:12 +0000 |
commit | 30443501e221f5d6f73719696bee8996ee02c015 (patch) | |
tree | 73215976fb920b3c75b475f70c9ec01bdec0e9e9 /content/browser/plugin_service_impl.cc | |
parent | 7c00e266583d171ae56ae5c26a0a5e170e12277d (diff) | |
download | chromium_src-30443501e221f5d6f73719696bee8996ee02c015.zip chromium_src-30443501e221f5d6f73719696bee8996ee02c015.tar.gz chromium_src-30443501e221f5d6f73719696bee8996ee02c015.tar.bz2 |
Add infobar for when NPAPI plugin is loaded.
BUG=380227
TEST=Load NPAPI plugin, verify infobar appears once for each NPAPI plugin.
Review URL: https://codereview.chromium.org/1100373003
Cr-Commit-Position: refs/heads/master@{#327989}
Diffstat (limited to 'content/browser/plugin_service_impl.cc')
-rw-r--r-- | content/browser/plugin_service_impl.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/content/browser/plugin_service_impl.cc b/content/browser/plugin_service_impl.cc index 382dbbb..b4c2582 100644 --- a/content/browser/plugin_service_impl.cc +++ b/content/browser/plugin_service_impl.cc @@ -479,6 +479,10 @@ void PluginServiceImpl::GetAllowedPluginForOpenChannelToPlugin( render_process_id, plugin_path, client)); + if (filter_) { + DCHECK_EQ(WebPluginInfo::PLUGIN_TYPE_NPAPI, info.type); + filter_->NPAPIPluginLoaded(render_process_id, render_frame_id, info); + } } void PluginServiceImpl::FinishOpenChannelToPlugin( |