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

Unified Diff: services/service_manager/standalone/context.cc

Issue 2617883002: Add a new BindInterface() method to Connector. (Closed)
Patch Set: . Created 3 years, 11 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: services/service_manager/standalone/context.cc
diff --git a/services/service_manager/standalone/context.cc b/services/service_manager/standalone/context.cc
index f8f604f423015a45cf446cf371e69eff443cc620..4ab116c0881b35a67bee39e54e597ae8cd56a7a6 100644
--- a/services/service_manager/standalone/context.cc
+++ b/services/service_manager/standalone/context.cc
@@ -201,22 +201,22 @@ void Context::Init(std::unique_ptr<InitParams> init_params) {
Identity source_identity = CreateServiceManagerIdentity();
Identity tracing_identity(tracing::mojom::kServiceName, mojom::kRootUserID);
tracing::mojom::FactoryPtr factory;
- ConnectToInterface(service_manager(), source_identity, tracing_identity,
- &factory);
+ BindInterface(service_manager(), source_identity, tracing_identity,
+ &factory);
provider_.InitializeWithFactory(&factory);
if (command_line.HasSwitch(tracing::kTraceStartup)) {
tracing::mojom::CollectorPtr coordinator;
- ConnectToInterface(service_manager(), source_identity, tracing_identity,
- &coordinator);
+ BindInterface(service_manager(), source_identity, tracing_identity,
+ &coordinator);
tracer_.StartCollectingFromTracingService(std::move(coordinator));
}
// Record the service manager startup metrics used for performance testing.
if (enable_stats_collection_bindings) {
tracing::mojom::StartupPerformanceDataCollectorPtr collector;
- ConnectToInterface(service_manager(), source_identity, tracing_identity,
- &collector);
+ BindInterface(service_manager(), source_identity, tracing_identity,
+ &collector);
#if defined(OS_MACOSX) || defined(OS_WIN) || defined(OS_LINUX)
// CurrentProcessInfo::CreationTime is only defined on some platforms.
const base::Time creation_time = base::CurrentProcessInfo::CreationTime();
« no previous file with comments | « services/service_manager/service_manager.cc ('k') | services/service_manager/tests/connect/connect_test_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698