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

Unified Diff: services/resource_coordinator/resource_coordinator_service.cc

Issue 2938443002: [GRC] UKM Support (Closed)
Patch Set: Address reviewer feedback Created 3 years, 6 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/resource_coordinator_service.cc
diff --git a/services/resource_coordinator/resource_coordinator_service.cc b/services/resource_coordinator/resource_coordinator_service.cc
index 9455599b8301a7c5c0c7cc1fca1c6741dddaa354..1b879a93a81c4ca9c1f70fc666552978efd69b34 100644
--- a/services/resource_coordinator/resource_coordinator_service.cc
+++ b/services/resource_coordinator/resource_coordinator_service.cc
@@ -4,11 +4,9 @@
#include "services/resource_coordinator/resource_coordinator_service.h"
-#include <string>
#include <utility>
-#include "base/macros.h"
-#include "services/resource_coordinator/coordination_unit/coordination_unit_provider_impl.h"
+#include "services/resource_coordinator/service_callbacks_impl.h"
#include "services/service_manager/public/cpp/service_context.h"
namespace resource_coordinator {
@@ -27,6 +25,10 @@ void ResourceCoordinatorService::OnStart() {
base::Bind(&service_manager::ServiceContext::RequestQuit,
base::Unretained(context()))));
+ registry_.AddInterface(base::Bind(ServiceCallbacksImpl::Create,
+ base::Unretained(ref_factory_.get()),
+ base::Unretained(this)));
+
coordination_unit_manager_.OnStart(&registry_, ref_factory_.get());
}
@@ -38,4 +40,10 @@ void ResourceCoordinatorService::OnBindInterface(
std::move(interface_pipe));
}
+void ResourceCoordinatorService::SetUkmRecorder(
+ std::unique_ptr<ukm::MojoUkmRecorder> ukm_recorder) {
+ ukm_recorder_ = std::move(ukm_recorder);
+ coordination_unit_manager_.set_ukm_recorder(ukm_recorder_.get());
+}
+
} // namespace resource_coordinator
« no previous file with comments | « services/resource_coordinator/resource_coordinator_service.h ('k') | services/resource_coordinator/service_callbacks_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698