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

Unified Diff: services/service_manager/service_manager.cc

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (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: services/service_manager/service_manager.cc
diff --git a/services/service_manager/service_manager.cc b/services/service_manager/service_manager.cc
index daac308d52682210af9a700bc777b97b5f72126b..3adbad11fb204bd18489c47c431d75524dfed93a 100644
--- a/services/service_manager/service_manager.cc
+++ b/services/service_manager/service_manager.cc
@@ -218,9 +218,10 @@ class ServiceManager::Instance
pending_service_connections_++;
service_->OnBindInterface(
- ServiceInfo(params->source(), source_specs),
- params->interface_name(),
- params->TakeInterfaceRequestPipe(),
+ BindSourceInfo(
+ params->source(),
+ GetRequestedCapabilities(source_connection_spec, identity_)),
+ params->interface_name(), params->TakeInterfaceRequestPipe(),
base::Bind(&Instance::OnConnectComplete, base::Unretained(this)));
return true;
}
@@ -237,9 +238,8 @@ class ServiceManager::Instance
service_.set_connection_error_handler(
base::Bind(&Instance::OnServiceLost, base::Unretained(this),
service_manager_->GetWeakPtr()));
- service_->OnStart(ServiceInfo(identity_, interface_provider_specs_),
- base::Bind(&Instance::OnStartComplete,
- base::Unretained(this)));
+ service_->OnStart(identity_, base::Bind(&Instance::OnStartComplete,
+ base::Unretained(this)));
}
bool StartWithFilePath(const base::FilePath& path) {
@@ -285,7 +285,7 @@ class ServiceManager::Instance
uint32_t id() const { return id_; }
// Service:
- void OnBindInterface(const ServiceInfo& source_info,
+ void OnBindInterface(const BindSourceInfo& source_info,
const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe) override {
Instance* source =
@@ -643,7 +643,7 @@ class ServiceManager::ServiceImpl : public Service {
~ServiceImpl() override {}
// Service:
- void OnBindInterface(const ServiceInfo& source_info,
+ void OnBindInterface(const BindSourceInfo& source_info,
const std::string& interface_name,
mojo::ScopedMessagePipeHandle interface_pipe) override {
// The only interface ServiceManager exposes is mojom::ServiceManager, and
« no previous file with comments | « services/service_manager/public/interfaces/service.mojom ('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