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

Unified Diff: components/arc/net/arc_net_host_impl.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/net/arc_net_host_impl.cc
diff --git a/components/arc/net/arc_net_host_impl.cc b/components/arc/net/arc_net_host_impl.cc
index 824df9582dce3aacb570a412a10173e443c71c4d..aef239094a37275a8cccc18c11e5079231fd3242 100644
--- a/components/arc/net/arc_net_host_impl.cc
+++ b/components/arc/net/arc_net_host_impl.cc
@@ -309,7 +309,9 @@ void ArcNetHostImpl::OnInstanceReady() {
mojom::NetHostPtr host;
binding_.Bind(GetProxy(&host));
- arc_bridge_service()->net()->instance()->Init(std::move(host));
+ auto* instance = arc_bridge_service()->net()->GetInstanceForMethod("Init");
+ CHECK(instance);
+ instance->Init(std::move(host));
}
void ArcNetHostImpl::GetNetworksDeprecated(

Powered by Google App Engine
This is Rietveld 408576698