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

Unified Diff: chrome/renderer/chrome_content_renderer_client.cc

Issue 11742017: Allow Plugin placeholders to be shown when plugins are disabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 12 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 | content/renderer/render_view_impl.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 b8b01ceb995bd24bb298aa83f1c15873e22441d3..b439c2fe3123ceda747474f9d34125364c7a8fae 100644
--- a/chrome/renderer/chrome_content_renderer_client.cc
+++ b/chrome/renderer/chrome_content_renderer_client.cc
@@ -360,9 +360,13 @@ bool ChromeContentRendererClient::OverrideCreatePlugin(
}
ChromeViewHostMsg_GetPluginInfo_Output output;
+#if defined(ENABLE_PLUGINS)
render_view->Send(new ChromeViewHostMsg_GetPluginInfo(
render_view->GetRoutingID(), GURL(params.url),
frame->top()->document().url(), orig_mime_type, &output));
+#else
+ output.status.value = ChromeViewHostMsg_GetPluginInfo_Status::kNotFound;
Bernhard Bauer 2013/01/03 06:51:37 Not: I think it would probably not be unreasonable
nilesh 2013/01/03 19:37:59 It looks like there is code which relies on the de
+#endif
*plugin = CreatePlugin(render_view, frame, params, output);
return true;
}
« no previous file with comments | « no previous file | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698