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

Unified Diff: components/arc/intent_helper/activity_icon_loader.cc

Issue 2357053002: Always use arc::InstanceHolder<T>::GetInstanceForMethod (Closed)
Patch Set: rebased to catch up tot Created 4 years, 3 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: components/arc/intent_helper/activity_icon_loader.cc
diff --git a/components/arc/intent_helper/activity_icon_loader.cc b/components/arc/intent_helper/activity_icon_loader.cc
index bf135a5d3d8454a734fd0b0893423157dd531ca1..de77609e060b9fcd0e744c2fcae42c06d18140b4 100644
--- a/components/arc/intent_helper/activity_icon_loader.cc
+++ b/components/arc/intent_helper/activity_icon_loader.cc
@@ -89,9 +89,8 @@ ActivityIconLoader::GetResult ActivityIconLoader::GetActivityIcons(
}
ArcIntentHelperBridge::GetResult error_code;
- mojom::IntentHelperInstance* instance =
- ArcIntentHelperBridge::GetIntentHelperInstanceWithErrorCode(
- kMinInstanceVersion, &error_code);
+ auto* instance = ArcIntentHelperBridge::GetIntentHelperInstanceWithErrorCode(
+ "RequestActivityIcons", kMinInstanceVersion, &error_code);
if (!instance) {
// The mojo channel is not yet ready (or not supported at all). Run the
// callback with |result| that could be empty.

Powered by Google App Engine
This is Rietveld 408576698