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

Unified Diff: components/arc/obb_mounter/arc_obb_mounter_bridge.cc

Issue 2357053002: Always use arc::InstanceHolder<T>::GetInstanceForMethod (Closed)
Patch Set: rebase, no code change 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
« no previous file with comments | « components/arc/net/arc_net_host_impl.cc ('k') | components/arc/power/arc_power_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/obb_mounter/arc_obb_mounter_bridge.cc
diff --git a/components/arc/obb_mounter/arc_obb_mounter_bridge.cc b/components/arc/obb_mounter/arc_obb_mounter_bridge.cc
index 04362b7cbf94d21bf0c3e86607150d0b7b05220a..5d05583bae6d000439d061026ad90be3630b2d28 100644
--- a/components/arc/obb_mounter/arc_obb_mounter_bridge.cc
+++ b/components/arc/obb_mounter/arc_obb_mounter_bridge.cc
@@ -32,7 +32,8 @@ ArcObbMounterBridge::~ArcObbMounterBridge() {
void ArcObbMounterBridge::OnInstanceReady() {
mojom::ObbMounterInstance* obb_mounter_instance =
- arc_bridge_service()->obb_mounter()->instance();
+ arc_bridge_service()->obb_mounter()->GetInstanceForMethod("Init");
+ DCHECK(obb_mounter_instance);
obb_mounter_instance->Init(binding_.CreateInterfacePtrAndBind());
}
« no previous file with comments | « components/arc/net/arc_net_host_impl.cc ('k') | components/arc/power/arc_power_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698