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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Comment and log cleanup. Created 4 years 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: 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 2cab771dcbe9857263ba97ea71a87b5e9eea2297..1c6298b8878e2bf07e48e39e64208513960bb157 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -97,6 +97,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"
@@ -3042,6 +3043,11 @@ void ChromeContentBrowserClient::RegisterRenderFrameMojoInterfaces(
}
#endif
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_WIN)
Matt Giuca 2016/12/08 06:42:56 You shouldn't need OS_CHROMEOS because LINUX impli
constantina 2016/12/09 02:24:14 Done.
+ if (!ChromeOriginTrialPolicy().IsFeatureDisabled("WebShare")) {
+ registry->AddInterface(base::Bind(&ShareServiceImpl::Create));
+ }
+#endif
}
void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess(

Powered by Google App Engine
This is Rietveld 408576698