Index: content/browser/renderer_host/render_view_host_unittest.cc |
diff --git a/content/browser/renderer_host/render_view_host_unittest.cc b/content/browser/renderer_host/render_view_host_unittest.cc |
index 57418fc2e6421a4f17050cb83ac7d1bae9d3de84..6f8bb44b3c89330db5160530dab0df139bd5a9e8 100644 |
--- a/content/browser/renderer_host/render_view_host_unittest.cc |
+++ b/content/browser/renderer_host/render_view_host_unittest.cc |
@@ -88,8 +88,9 @@ TEST_F(RenderViewHostTest, DontGrantBindingsToSharedProcess) { |
std::unique_ptr<TestWebContents> new_web_contents( |
TestWebContents::Create(browser_context(), rvh()->GetSiteInstance())); |
- rvh()->AllowBindings(BINDINGS_POLICY_WEB_UI); |
- EXPECT_FALSE(rvh()->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI); |
+ rvh()->GetMainFrame()->AllowBindings(BINDINGS_POLICY_WEB_UI); |
Charlie Reis
2017/01/18 22:18:43
main_rfh() here as well.
Sam McNally
2017/01/19 05:30:37
Done.
|
+ EXPECT_FALSE(rvh()->GetMainFrame()->GetEnabledBindings() & |
+ BINDINGS_POLICY_WEB_UI); |
} |
class MockDraggingRenderViewHostDelegateView |