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

Unified Diff: components/arc/intent_helper/arc_intent_helper_bridge.h

Issue 2614173002: Use ARC_GET_INSTANCE_FOR_METHOD for getting intent_helper instance (Closed)
Patch Set: review 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: components/arc/intent_helper/arc_intent_helper_bridge.h
diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.h b/components/arc/intent_helper/arc_intent_helper_bridge.h
index 64eb02329292ac6722e2ee4e1e318b17457a0032..75219f49920c8ba70ce31625b9f6febe22d7be44 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.h
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.h
@@ -82,17 +82,9 @@ class ArcIntentHelperBridge
static std::vector<mojom::IntentHandlerInfoPtr> FilterOutIntentHelper(
std::vector<mojom::IntentHandlerInfoPtr> handlers);
- // Gets the mojo instance if it's available. On failure, returns nullptr and
- // updates |out_error_code| if it's not nullptr.
- static mojom::IntentHelperInstance* GetIntentHelperInstanceWithErrorCode(
- const std::string& method_name_for_logging,
- uint32_t min_instance_version,
- GetResult* out_error_code);
-
- // Does the same as above without asking for the error code.
- static mojom::IntentHelperInstance* GetIntentHelperInstance(
- const std::string& method_name_for_logging,
- uint32_t min_instance_version);
+ // Checks if the intent helper interface is available. When it is not, returns
+ // false and updates |out_error_code| if it's not nullptr.
+ static bool IsIntentHelperAvailable(GetResult* out_error_code);
static const char kArcIntentHelperPackageName[];

Powered by Google App Engine
This is Rietveld 408576698