summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/render_view_host.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/render_view_host.cc b/chrome/browser/renderer_host/render_view_host.cc
index 0c19b07..63ea4ae 100644
--- a/chrome/browser/renderer_host/render_view_host.cc
+++ b/chrome/browser/renderer_host/render_view_host.cc
@@ -1436,7 +1436,8 @@ void RenderViewHost::OnExtensionRequest(const std::string& name,
const std::string& args,
int request_id,
bool has_callback) {
- if (!BindingsPolicy::is_extension_enabled(enabled_bindings_)) {
+ if (!ChildProcessSecurityPolicy::GetInstance()->
+ HasExtensionBindings(process()->pid())) {
NOTREACHED() << "Blocked unauthorized use of extension bindings.";
return;
}