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

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

Issue 1192713004: Update client side navigator.connect API to use ServicePortCollection [2/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 6 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
« no previous file with comments | « content/browser/navigator_connect/service_port_service_impl.cc ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 537f713a83131cb9a3f7d21ff140294c1a2e6619..248ed1d8b17158adeb873798ca038fb954fa0f68 100644
--- a/content/browser/renderer_host/render_process_host_impl.cc
+++ b/content/browser/renderer_host/render_process_host_impl.cc
@@ -76,7 +76,7 @@
#include "content/browser/message_port_message_filter.h"
#include "content/browser/mime_registry_message_filter.h"
#include "content/browser/mojo/mojo_application_host.h"
-#include "content/browser/navigator_connect/navigator_connect_dispatcher_host.h"
+#include "content/browser/navigator_connect/service_port_service_impl.h"
#include "content/browser/notifications/notification_message_filter.h"
#include "content/browser/permissions/permission_service_context.h"
#include "content/browser/permissions/permission_service_impl.h"
@@ -930,9 +930,6 @@ void RenderProcessHostImpl::CreateMessageFilters() {
#endif
AddFilter(new GeofencingDispatcherHost(
storage_partition_impl_->GetGeofencingManager()));
- AddFilter(new NavigatorConnectDispatcherHost(
- storage_partition_impl_->GetNavigatorConnectContext(),
- message_port_message_filter_.get()));
if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) {
bluetooth_dispatcher_host_ = new BluetoothDispatcherHost();
AddFilter(bluetooth_dispatcher_host_.get());
@@ -954,6 +951,11 @@ void RenderProcessHostImpl::RegisterMojoServices() {
&content::BackgroundSyncServiceImpl::Create,
base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
+ mojo_application_host_->service_registry()->AddService(base::Bind(
+ &content::ServicePortServiceImpl::Create,
+ make_scoped_refptr(storage_partition_impl_->GetNavigatorConnectContext()),
+ message_port_message_filter_));
+
#if defined(OS_ANDROID)
ServiceRegistrarAndroid::RegisterProcessHostServices(
mojo_application_host_->service_registry_android());
« no previous file with comments | « content/browser/navigator_connect/service_port_service_impl.cc ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698