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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 10093011: Show a replacement plug-in for loading errors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 8 years, 8 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/renderer/chrome_content_renderer_client.h ('k') | chrome/renderer/plugins/plugin_placeholder.h » ('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 12ae141e564ad24cfc7a4adb541ab8f28eb5a4b6..46473c3dd1cfa4b212e8897d8ced44a4d43bc196 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -295,6 +295,14 @@ bool ChromeContentRendererClient::OverrideCreatePlugin(
return true;
}
+WebPlugin* ChromeContentRendererClient::CreatePluginReplacement(
+ content::RenderView* render_view,
+ const FilePath& plugin_path) {
+ PluginPlaceholder* placeholder =
+ PluginPlaceholder::CreateErrorPlugin(render_view, plugin_path);
+ return placeholder->plugin();
+}
+
webkit_media::WebMediaPlayerImpl*
ChromeContentRendererClient::OverrideCreateWebMediaPlayer(
content::RenderView* render_view,
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.h ('k') | chrome/renderer/plugins/plugin_placeholder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698