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

Unified Diff: chrome/renderer/plugins/plugin_placeholder.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 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/page_load_histograms.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/plugins/plugin_placeholder.cc
===================================================================
--- chrome/renderer/plugins/plugin_placeholder.cc (revision 192622)
+++ chrome/renderer/plugins/plugin_placeholder.cc (working copy)
@@ -449,11 +449,8 @@
mime_type, &output));
if (output.status.value == status_->value)
return;
- chrome::ChromeContentRendererClient* client =
- static_cast<chrome::ChromeContentRendererClient*>(
- content::GetContentClient()->renderer());
- WebPlugin* new_plugin =
- client->CreatePlugin(render_view(), frame_, plugin_params_, output);
+ WebPlugin* new_plugin = chrome::ChromeContentRendererClient::CreatePlugin(
+ render_view(), frame_, plugin_params_, output);
ReplacePlugin(new_plugin);
}
« no previous file with comments | « chrome/renderer/page_load_histograms.cc ('k') | chrome/test/base/chrome_render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698