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

Unified Diff: content/browser/service_manager/service_manager_context.cc

Issue 2766263009: Convert content ConnectionFilter to OnBindInterface (Closed)
Patch Set: . Created 3 years, 8 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/service_manager/service_manager_context.cc
diff --git a/content/browser/service_manager/service_manager_context.cc b/content/browser/service_manager/service_manager_context.cc
index caa9424c8852c6d7e8bc391525ef336d2b612546..9cfb2e1ee72ff3489c82cc8080990babf00e6b8a 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -24,6 +24,7 @@
#include "content/grit/content_resources.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
+#include "content/public/browser/gpu_service_registry.h"
#include "content/public/browser/utility_process_host.h"
#include "content/public/browser/utility_process_host_client.h"
#include "content/public/common/content_client.h"
@@ -68,8 +69,7 @@ void StartServiceInUtilityProcess(
process_host->DisableSandbox();
process_host->Start();
service_manager::mojom::ServiceFactoryPtr service_factory;
- process_host->GetRemoteInterfaces()->GetInterface(
- mojo::MakeRequest(&service_factory));
+ BindInterface(process_host, mojo::MakeRequest(&service_factory));
service_factory->CreateService(std::move(request), service_name);
}
@@ -90,8 +90,7 @@ void StartServiceInGpuProcess(const std::string& service_name,
// process is dead. In that case, |request| will be dropped and application
// load requests through ServiceFactory will also fail. Make sure we handle
// these cases correctly.
- process_host->GetRemoteInterfaces()->GetInterface(
- mojo::MakeRequest(&service_factory));
+ BindInterfaceInGpuProcess(mojo::MakeRequest(&service_factory));
service_factory->CreateService(std::move(request), service_name);
}

Powered by Google App Engine
This is Rietveld 408576698