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

Unified Diff: headless/lib/browser/headless_web_contents_impl.cc

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: rebase Created 3 years, 11 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
Index: headless/lib/browser/headless_web_contents_impl.cc
diff --git a/headless/lib/browser/headless_web_contents_impl.cc b/headless/lib/browser/headless_web_contents_impl.cc
index 1516d964ff3a93aac0daa7f22b196ae924d0bf6e..094979fa542b9c04ba0132e7c86be578332a3c01 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -173,8 +173,7 @@ HeadlessWebContentsImpl::~HeadlessWebContentsImpl() {
void HeadlessWebContentsImpl::RenderFrameCreated(
content::RenderFrameHost* render_frame_host) {
if (!mojo_services_.empty()) {
- render_frame_host->GetRenderViewHost()->AllowBindings(
- content::BINDINGS_POLICY_HEADLESS);
+ render_frame_host->AllowBindings(content::BINDINGS_POLICY_HEADLESS);
}
service_manager::InterfaceRegistry* interface_registry =

Powered by Google App Engine
This is Rietveld 408576698