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

Unified Diff: chrome/browser/ui/webui/mojo_web_ui_controller.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
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/mojo_web_ui_controller.cc
diff --git a/chrome/browser/ui/webui/mojo_web_ui_controller.cc b/chrome/browser/ui/webui/mojo_web_ui_controller.cc
index 089b2e508f87a536645ed5a021418e51e31c2eb5..fc51c20e93a93d2f4138c58ed4e20dd2ad32e796 100644
--- a/chrome/browser/ui/webui/mojo_web_ui_controller.cc
+++ b/chrome/browser/ui/webui/mojo_web_ui_controller.cc
@@ -19,6 +19,5 @@ MojoWebUIControllerBase::~MojoWebUIControllerBase() {
void MojoWebUIControllerBase::RenderFrameCreated(
content::RenderFrameHost* render_frame_host) {
- render_frame_host->GetRenderViewHost()->AllowBindings(
- content::BINDINGS_POLICY_WEB_UI);
+ render_frame_host->AllowBindings(content::BINDINGS_POLICY_WEB_UI);
}
« no previous file with comments | « chrome/browser/ui/browser_navigator_browsertest.cc ('k') | chrome/renderer/chrome_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698