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()); |