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

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: Created 4 years 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 014e48240c9421b45e62f93a59174163738875a6..874a2605d4acd5c5db87f950a27c9c163e4837e7 100644
--- a/headless/lib/browser/headless_web_contents_impl.cc
+++ b/headless/lib/browser/headless_web_contents_impl.cc
@@ -174,8 +174,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