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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 1707233003: Expose mojo bindings to subframes in layout tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layout-test-mojom
Patch Set: Created 4 years, 10 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 | « no previous file | third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 4549db8fc745140dfaaf4e8307da3aa80b067405..eab1b5c502fb531aad0a3f793e36cb6b91d830d0 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1112,6 +1112,9 @@ void RenderFrameImpl::Initialize() {
if (IsMainFrame() &&
RenderProcess::current()->GetEnabledBindings() & BINDINGS_POLICY_WEB_UI) {
EnableMojoBindings(false /* for_layout_tests */);
+ } else if (RenderProcess::current()->GetEnabledBindings() &
Charlie Reis 2016/02/19 06:26:34 This doesn't look like it does the right thing. W
Sam McNally 2016/02/22 09:31:19 I don't think that's possible; RenderViewImpl will
+ BINDINGS_POLICY_MOJO) {
+ EnableMojoBindings(true /* for_layout_tests */);
Charlie Reis 2016/02/19 06:26:34 I don't understand how to infer that it's for layo
Sam McNally 2016/02/22 09:31:19 The way JS mojo bindings work in content is a bit
esprehn 2016/02/24 20:44:34 There should be no process that contains v8 mojo b
}
#if defined(ENABLE_PLUGINS)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/harness-tests/mojo-helpers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698