Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 15283cb405f4729ad809960ddc183ff5da2961cf..b1b7efaa1daab2f69a7b9572632169917d7a9b90 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -59,6 +59,7 @@ |
#include "content/browser/shared_worker/shared_worker_service_impl.h" |
#include "content/browser/websockets/websocket_manager.h" |
#include "content/browser/webui/web_ui_controller_factory_registry.h" |
+#include "content/browser/webui/web_ui_url_loader_factory.h" |
#include "content/common/accessibility_messages.h" |
#include "content/common/associated_interface_provider_impl.h" |
#include "content/common/associated_interface_registry_impl.h" |
@@ -3049,6 +3050,14 @@ void RenderFrameHostImpl::CommitNavigation( |
commit_data.handle = handle.release(); |
// TODO(scottmg): Pass a factory for SW, etc. once we have one. |
commit_data.url_loader_factory = mojo::MessagePipeHandle(); |
scottmg
2017/05/05 19:27:42
nit; put this in else
jam
2017/05/05 22:19:39
Done.
|
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableNetworkService) && |
+ common_params.url.SchemeIs(kChromeUIScheme)) { |
+ commit_data.url_loader_factory = GetWebUIURLLoader(frame_tree_node_) |
+ .PassInterface() |
+ .PassHandle() |
+ .release(); |
+ } |
Send(new FrameMsg_CommitNavigation(routing_id_, head, body_url, commit_data, |
common_params, request_params)); |