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

Unified Diff: content/shell/shell_content_renderer_client.cc

Issue 7972018: Don't depend on the embedder creating a plugin. That way embedders can always provide an empty Co... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « content/shell/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_content_renderer_client.cc
===================================================================
--- content/shell/shell_content_renderer_client.cc (revision 102285)
+++ content/shell/shell_content_renderer_client.cc (working copy)
@@ -4,7 +4,6 @@
#include "content/shell/shell_content_renderer_client.h"
-#include "content/renderer/render_view.h"
#include "v8/include/v8.h"
namespace content {
@@ -29,11 +28,12 @@
return std::string();
}
-WebKit::WebPlugin* ShellContentRendererClient::CreatePlugin(
+bool ShellContentRendererClient::OverrideCreatePlugin(
RenderView* render_view,
WebKit::WebFrame* frame,
- const WebKit::WebPluginParams& params) {
- return render_view->CreatePluginNoCheck(frame, params);
+ const WebKit::WebPluginParams& params,
+ WebKit::WebPlugin** plugin) {
+ return false;
}
void ShellContentRendererClient::ShowErrorPage(RenderView* render_view,
« no previous file with comments | « content/shell/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698