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

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: 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
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..ea0e8f7a3a3481bc8c15fcb7ef28fabc7e0c6f8b 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);
+ main_rfh()->AllowBindings(BINDINGS_POLICY_WEB_UI);
+ EXPECT_FALSE(rvh()->GetMainFrame()->GetEnabledBindings() &
Charlie Reis 2017/01/19 17:58:55 nit: This one should be main_rfh(), too. :)
Sam McNally 2017/01/19 23:34:09 Done.
+ BINDINGS_POLICY_WEB_UI);
}
class MockDraggingRenderViewHostDelegateView
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/security_exploit_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698