Chromium Code Reviews| 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 6f22bef294fbe13a5ff89c72fb0c66fa1e0b8a24..1289f971559264ca0e622fc9df469d561eba3b46 100644 |
| --- a/content/browser/frame_host/render_frame_host_impl.cc |
| +++ b/content/browser/frame_host/render_frame_host_impl.cc |
| @@ -53,6 +53,7 @@ |
| #include "content/browser/renderer_host/render_widget_host_impl.h" |
| #include "content/browser/renderer_host/render_widget_host_view_base.h" |
| #include "content/browser/shared_worker/shared_worker_service_impl.h" |
| +#include "content/browser/webshare/share_service_impl.h" |
| #include "content/browser/websockets/websocket_manager.h" |
| #include "content/browser/webui/web_ui_controller_factory_registry.h" |
| #include "content/common/accessibility_messages.h" |
| @@ -2320,6 +2321,12 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() { |
| GetContentClient()->browser()->RegisterRenderFrameMojoInterfaces( |
| GetInterfaceRegistry(), this); |
| + |
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
| + switches::kEnableExperimentalWebPlatformFeatures)) { |
|
Matt Giuca
2016/12/05 02:21:13
You shouldn't check for this switch directly; you
|
| + GetInterfaceRegistry()->AddInterface(base::Bind( |
| + &ShareServiceImpl::Create)); |
| + } |
| } |
| void RenderFrameHostImpl::ResetWaitingState() { |