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

Unified Diff: chrome/browser/ui/app_list/arc/arc_app_utils.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
Index: chrome/browser/ui/app_list/arc/arc_app_utils.cc
diff --git a/chrome/browser/ui/app_list/arc/arc_app_utils.cc b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
index fc90010a54dbe58d27318751b4a790b93e809501..7b992acc2661fdf60e79379d3ad29ddfd8f94ff1 100644
--- a/chrome/browser/ui/app_list/arc/arc_app_utils.cc
+++ b/chrome/browser/ui/app_list/arc/arc_app_utils.cc
@@ -77,8 +77,9 @@ arc::mojom::AppInstance* GetAppInstance(uint32_t required_version,
return nullptr;
}
- return arc_service_manager->arc_bridge_service()->app()->GetInstanceForMethod(
- service_name, required_version);
+ return arc_service_manager->arc_bridge_service()
+ ->app()
+ ->GetInstanceForVersion(required_version, service_name.c_str());
}
// Helper function which returns the IntentHelperInstance. Create related logs
@@ -95,7 +96,7 @@ arc::mojom::IntentHelperInstance* GetIntentHelperInstance(
return arc_service_manager->arc_bridge_service()
->intent_helper()
- ->GetInstanceForMethod(service_name, required_version);
+ ->GetInstanceForVersion(required_version, service_name.c_str());
}
void PrioritizeArcInstanceCallback(bool success) {
« no previous file with comments | « chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc ('k') | chrome/browser/ui/app_list/arc/arc_package_syncable_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698