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

Unified Diff: services/resource_coordinator/public/cpp/resource_coordinator_interface.cc

Issue 2946683002: [GRC] Tab CPU Usage Observer (Closed)
Patch Set: Add unittest 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/public/cpp/resource_coordinator_interface.cc
diff --git a/services/resource_coordinator/public/cpp/resource_coordinator_interface.cc b/services/resource_coordinator/public/cpp/resource_coordinator_interface.cc
index 7c76ac3c28d8070394b838df619a98c867895e30..ebcd2c789dc730912cfe74db0e6b9cab58062cef 100644
--- a/services/resource_coordinator/public/cpp/resource_coordinator_interface.cc
+++ b/services/resource_coordinator/public/cpp/resource_coordinator_interface.cc
@@ -101,4 +101,13 @@ void ResourceCoordinatorInterface::RemoveChildByID(
service_->RemoveChild(child_id);
}
+void ResourceCoordinatorInterface::SetProperty(
+ const mojom::PropertyType& property_type,
+ std::unique_ptr<base::Value> value) {
+ mojom::PropertyPtr property = mojom::Property::New();
+ property->property = property_type;
+ property->value = std::move(value);
+ service_->SetProperty(std::move(property));
+}
+
} // namespace resource_coordinator

Powered by Google App Engine
This is Rietveld 408576698