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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2545323002: Implemented stub ShareService mojo service, for navigator.share. (Closed)
Patch Set: Rebase and sync again 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
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/webshare/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « chrome/browser/BUILD.gn ('k') | chrome/browser/webshare/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698