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

Unified Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 1806253002: Added Web Share (navigator.share) experimental web API (stub). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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: content/browser/renderer_host/render_process_host_impl.cc
diff --git a/content/browser/renderer_host/render_process_host_impl.cc b/content/browser/renderer_host/render_process_host_impl.cc
index 16eb32286ffd4674c44d1ecf3f73f6e0705fcbe8..9f4d63d2f79c5e6b269a3ceb05e29c59836bcd9c 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -45,6 +45,7 @@
#include "content/browser/appcache/chrome_appcache_service.h"
#include "content/browser/background_sync/background_sync_service_impl.h"
#include "content/browser/bad_message.h"
+#include "content/browser/ballista/ballista_service_impl.h"
#include "content/browser/bluetooth/bluetooth_dispatcher_host.h"
#include "content/browser/browser_child_process_host_impl.h"
#include "content/browser/browser_main.h"
@@ -1099,6 +1100,11 @@ void RenderProcessHostImpl::RegisterMojoServices() {
base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
base::Unretained(this)));
+ // TODO(mgiuca): Only add this if #experimental-web-platform-features is
+ // enabled.
+ mojo_application_host_->service_registry()->AddService(
+ base::Bind(&BallistaServiceImpl::Create, GetBrowserContext()));
+
#if defined(OS_ANDROID)
ServiceRegistrarAndroid::RegisterProcessHostServices(
mojo_application_host_->service_registry_android());

Powered by Google App Engine
This is Rietveld 408576698