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

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

Issue 2710823003: NOCOMMIT prototype: GRC service plumbing and process priority
Patch Set: Buildfixes 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: 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 c400726c1c84c109691fb8abe0e8234fb2138f97..1bd5f5a0ba2694b636a4c8747b1d802a54298bbf 100644
--- a/content/browser/service_manager/service_manager_context.cc
+++ b/content/browser/service_manager/service_manager_context.cc
@@ -36,6 +36,8 @@
#include "services/catalog/store.h"
#include "services/device/device_service.h"
#include "services/device/public/interfaces/constants.mojom.h"
+#include "services/resource_coordinator/public/interfaces/constants.mojom.h"
+#include "services/resource_coordinator/resource_coordinator_service.h"
#include "services/service_manager/connect_params.h"
#include "services/service_manager/public/cpp/connector.h"
#include "services/service_manager/public/cpp/service.h"
@@ -294,6 +296,12 @@ ServiceManagerContext::ServiceManagerContext() {
packaged_services_connection_->AddEmbeddedService(device::mojom::kServiceName,
device_info);
+ ServiceInfo resource_coordinator_info;
+ resource_coordinator_info.factory =
+ base::Bind(&resource_coordinator::ResourceCoordinatorService::Create);
+ packaged_services_connection_->AddEmbeddedService(
+ resource_coordinator::mojom::kServiceName, resource_coordinator_info);
+
ContentBrowserClient::StaticServiceMap services;
GetContentClient()->browser()->RegisterInProcessServices(&services);
for (const auto& entry : services) {

Powered by Google App Engine
This is Rietveld 408576698