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

Unified Diff: content/browser/renderer_host/render_view_host_unittest.cc

Issue 2566583002: Change allowed bindings to be per RenderFrame instead of per RenderView. (Closed)
Patch Set: 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: 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

Powered by Google App Engine
This is Rietveld 408576698