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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 9114057: Add an error message to the Javascript console when the NaCl plugin is blocked, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_content_renderer_client.cc
===================================================================
--- chrome/renderer/chrome_content_renderer_client.cc (revision 116830)
+++ chrome/renderer/chrome_content_renderer_client.cc (working copy)
@@ -87,6 +87,7 @@
#include "webkit/plugins/ppapi/ppapi_interface_factory.h"
using WebKit::WebCache;
+using WebKit::WebConsoleMessage;
using WebKit::WebDataSource;
using WebKit::WebDocument;
using WebKit::WebFrame;
@@ -427,6 +428,12 @@
is_nacl_mime_type,
is_nacl_enabled,
params)) {
+ frame->addMessageToConsole(
+ WebConsoleMessage(
+ WebConsoleMessage::LevelError,
+ "Only unpacked extensions and apps installed from the Chrome"
+ " Web Store can load NaCl modules without enabling Native"
+ " Client in about:flags."));
return BlockedPlugin::Create(
render_view, frame, params, plugin, group.get(),
IDR_BLOCKED_PLUGIN_HTML, IDS_PLUGIN_BLOCKED, false, false);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698