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

Unified Diff: components/arc/metrics/arc_metrics_service.cc

Issue 2599673005: arc: Use GET_INTERFACE_FOR_METHOD macro (Closed)
Patch Set: Addressed feedback Created 3 years, 11 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
« no previous file with comments | « components/arc/kiosk/arc_kiosk_bridge.cc ('k') | components/arc/net/arc_net_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/metrics/arc_metrics_service.cc
diff --git a/components/arc/metrics/arc_metrics_service.cc b/components/arc/metrics/arc_metrics_service.cc
index b82d65cd8bac81625be2fc160385234978c1caed..2f391c598382e16dd158f43f3196667d7627bd53 100644
--- a/components/arc/metrics/arc_metrics_service.cc
+++ b/components/arc/metrics/arc_metrics_service.cc
@@ -75,9 +75,8 @@ void ArcMetricsService::OnProcessInstanceClosed() {
}
void ArcMetricsService::RequestProcessList() {
- mojom::ProcessInstance* process_instance =
- arc_bridge_service()->process()->GetInstanceForMethod(
- "RequestProcessList");
+ mojom::ProcessInstance* process_instance = ARC_GET_INSTANCE_FOR_METHOD(
+ arc_bridge_service()->process(), RequestProcessList);
if (!process_instance)
return;
VLOG(2) << "RequestProcessList";
@@ -120,7 +119,7 @@ void ArcMetricsService::OnArcStartTimeRetrieved(
return;
}
auto* instance =
- arc_bridge_service()->metrics()->GetInstanceForMethod("Init");
+ ARC_GET_INSTANCE_FOR_METHOD(arc_bridge_service()->metrics(), Init);
if (!instance)
return;
« no previous file with comments | « components/arc/kiosk/arc_kiosk_bridge.cc ('k') | components/arc/net/arc_net_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698