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

Unified Diff: services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc

Issue 2755813002: Begin to wean child processes off reliance on a persistent service_manager::Connection to the brows… (Closed)
Patch Set: . Created 3 years, 9 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/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc
diff --git a/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc b/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc
index 85fce7568c9ad6c0668897c98357f4bf58ac4daf..b93dd6f16e1ca06b47abafbd177da7d08ab3d4f4 100644
--- a/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc
+++ b/services/resource_coordinator/public/cpp/memory/memory_dump_manager_delegate_impl.cc
@@ -12,7 +12,7 @@
#include "mojo/public/cpp/bindings/interface_request.h"
#include "services/resource_coordinator/public/cpp/memory/coordinator.h"
#include "services/resource_coordinator/public/interfaces/memory/memory_instrumentation.mojom.h"
-#include "services/service_manager/public/cpp/interface_provider.h"
+#include "services/service_manager/public/cpp/connector.h"
namespace memory_instrumentation {
@@ -24,8 +24,9 @@ MemoryDumpManagerDelegateImpl::MemoryDumpManagerDelegateImpl(
config_(config),
task_runner_(nullptr),
pending_memory_dump_guid_(0) {
- if (config.interface_provider() != nullptr) {
- config.interface_provider()->GetInterface(mojo::MakeRequest(&coordinator_));
+ if (config.connector() != nullptr) {
+ config.connector()->BindInterface(config.service_name(),
+ mojo::MakeRequest(&coordinator_));
} else {
task_runner_ = base::ThreadTaskRunnerHandle::Get();
config.coordinator()->BindCoordinatorRequest(

Powered by Google App Engine
This is Rietveld 408576698