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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 11066043: Block NPAPI plug-ins in Metro mode instead of not loading them at all. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/plugins/npapi/plugin_list_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
diff --git a/chrome/renderer/chrome_content_renderer_client.cc b/chrome/renderer/chrome_content_renderer_client.cc
index 02c5105f95bd402f04b0290e081ce66f4ec63e78..c2ed7a5e04fdbea916fb48daeb8d93b23b2ce019 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -518,6 +518,16 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
return render_view->CreatePlugin(frame, plugin, params);
}
+ case ChromeViewHostMsg_GetPluginInfo_Status::kNPAPINotSupported: {
+ RenderThread::Get()->RecordUserMetrics("Plugin_NPAPINotSupported");
+ placeholder = PluginPlaceholder::CreateBlockedPlugin(
+ render_view, frame, params, plugin, identifier, group_name,
+ IDR_BLOCKED_PLUGIN_HTML,
+ l10n_util::GetStringUTF16(IDS_PLUGIN_NOT_SUPPORTED));
+ render_view->Send(new ChromeViewHostMsg_NPAPINotSupported(
+ render_view->GetRoutingID(), identifier));
+ break;
+ }
case ChromeViewHostMsg_GetPluginInfo_Status::kDisabled: {
placeholder = PluginPlaceholder::CreateBlockedPlugin(
render_view, frame, params, plugin, identifier, group_name,
« no previous file with comments | « chrome/common/render_messages.h ('k') | webkit/plugins/npapi/plugin_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698