Index: content/shell/browser/layout_test/blink_test_controller.cc |
diff --git a/content/shell/browser/layout_test/blink_test_controller.cc b/content/shell/browser/layout_test/blink_test_controller.cc |
index bf4e545828ba743c3941d8f95f2ac4eecd5bcef9..798460d17249cf47defae62c944380c1b7e5e6c5 100644 |
--- a/content/shell/browser/layout_test/blink_test_controller.cc |
+++ b/content/shell/browser/layout_test/blink_test_controller.cc |
@@ -582,10 +582,9 @@ void BlinkTestController::DiscardMainWindow() { |
} |
void BlinkTestController::HandleNewRenderFrameHost(RenderFrameHost* frame) { |
- // All RenderViewHosts in layout tests should get Mojo bindings. |
- RenderViewHost* rvh = frame->GetRenderViewHost(); |
- if (!(rvh->GetEnabledBindings() & BINDINGS_POLICY_MOJO)) |
- rvh->AllowBindings(BINDINGS_POLICY_MOJO); |
+ // All RenderFrameHosts in layout tests should get Mojo bindings. |
+ if (!(frame->GetEnabledBindings() & BINDINGS_POLICY_MOJO)) |
+ frame->AllowBindings(BINDINGS_POLICY_MOJO); |
RenderProcessHost* process = frame->GetProcess(); |
bool main_window = |