Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 2d7a02d61fe879e4dd3f804febcb773bdd14a7b8..b6ced5e4b68287d035f39f2c98c6b111b04225f9 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -98,6 +98,7 @@ |
#include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" |
#include "chrome/browser/ui/webui/log_web_ui_url.h" |
#include "chrome/browser/usb/usb_tab_helper.h" |
+#include "chrome/browser/webshare/share_service_impl.h" |
#include "chrome/common/channel_info.h" |
#include "chrome/common/chrome_constants.h" |
#include "chrome/common/chrome_paths.h" |
@@ -3057,6 +3058,11 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces( |
} |
#endif |
+#if defined(OS_LINUX) || defined(OS_WIN) |
+ if (!ChromeOriginTrialPolicy().IsFeatureDisabled("WebShare")) { |
+ registry->AddInterface(base::Bind(&ShareServiceImpl::Create)); |
+ } |
+#endif |
} |
void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess( |