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

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

Issue 2599673005: arc: Use GET_INTERFACE_FOR_METHOD macro (Closed)
Patch Set: Added a conversion I missed 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.cc
diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.cc b/components/arc/intent_helper/arc_intent_helper_bridge.cc
index c29d25b75dc3747bc44fcc35536c37a0be440165..324ce09266dbe871f282790f2d72f433050ddf71 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -48,7 +48,7 @@ void ArcIntentHelperBridge::OnInstanceReady() {
DCHECK(thread_checker_.CalledOnValidThread());
ash::Shell::GetInstance()->set_link_handler_model_factory(this);
auto* instance =
- arc_bridge_service()->intent_helper()->GetInstanceForMethod("Init");
+ GET_INSTANCE_FOR_METHOD(arc_bridge_service()->intent_helper(), Init);
DCHECK(instance);
instance->Init(binding_.CreateInterfacePtrAndBind());
}
@@ -154,8 +154,8 @@ ArcIntentHelperBridge::GetIntentHelperInstanceWithErrorCode(
return nullptr;
}
- auto* instance = intent_helper_holder->GetInstanceForMethod(
- method_name_for_logging, min_instance_version);
+ auto* instance = intent_helper_holder->GetInstanceForVersion(
+ min_instance_version, method_name_for_logging.c_str());
Yusuke Sato 2017/01/04 19:59:13 Same. Could you remove kMinInstanceVersion in acti
Luis Héctor Chávez 2017/01/04 20:38:56 Added TODO.
if (!instance) {
if (out_error_code)
*out_error_code = GetResult::FAILED_ARC_NOT_SUPPORTED;

Powered by Google App Engine
This is Rietveld 408576698