Chromium Code Reviews| 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; |