summaryrefslogtreecommitdiffstats
path: root/content/renderer/browser_plugin/browser_plugin.cc
diff options
context:
space:
mode:
authorfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-16 23:40:21 +0000
committerfsamuel@chromium.org <fsamuel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-16 23:40:21 +0000
commit095ebc0296c06705c7e76a008cffd3d824ad83bd (patch)
tree7c4d30637245844181e0d05a5613062d7e0974b9 /content/renderer/browser_plugin/browser_plugin.cc
parent3336c15c8aaee7226d3b4cf3e7357084024f9424 (diff)
downloadchromium_src-095ebc0296c06705c7e76a008cffd3d824ad83bd.zip
chromium_src-095ebc0296c06705c7e76a008cffd3d824ad83bd.tar.gz
chromium_src-095ebc0296c06705c7e76a008cffd3d824ad83bd.tar.bz2
Remove ContentRendererClient::AllowBrowserPlugin
BrowserPlugin can no longer create a new WebContents on its own without the chrome layer. Now that BrowserPlugin is inert, ContentRendererClient::AllowBrowserPlugin seems unnecessary. BUG=364141 Review URL: https://codereview.chromium.org/338493002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277576 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/browser_plugin/browser_plugin.cc')
-rw-r--r--content/renderer/browser_plugin/browser_plugin.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/content/renderer/browser_plugin/browser_plugin.cc b/content/renderer/browser_plugin/browser_plugin.cc
index 086b6ab..eec9de9 100644
--- a/content/renderer/browser_plugin/browser_plugin.cc
+++ b/content/renderer/browser_plugin/browser_plugin.cc
@@ -524,10 +524,6 @@ bool BrowserPlugin::initialize(WebPluginContainer* container) {
if (!container)
return false;
- if (!GetContentClient()->renderer()->AllowBrowserPlugin(container) &&
- !auto_navigate_)
- return false;
-
// Tell |container| to allow this plugin to use script objects.
npp_.reset(new NPP_t);
container->allowScriptObjects();