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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.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: chrome/browser/chromeos/arc/arc_auth_service.cc
diff --git a/chrome/browser/chromeos/arc/arc_auth_service.cc b/chrome/browser/chromeos/arc/arc_auth_service.cc
index 2e8ad05bd143a9f806fc4a988984218bdba50906..4263d1468290b74e864aeb3b679020dd66141d83 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc
@@ -229,8 +229,9 @@ bool ArcAuthService::IsAllowedForProfile(const Profile* profile) {
}
void ArcAuthService::OnInstanceReady() {
- arc_bridge_service()->auth()->instance()->Init(
- binding_.CreateInterfacePtrAndBind());
+ auto* instance = arc_bridge_service()->auth()->GetInstanceForMethod("Init");
+ CHECK(instance);
+ instance->Init(binding_.CreateInterfacePtrAndBind());
}
void ArcAuthService::OnBridgeStopped(ArcBridgeService::StopReason reason) {

Powered by Google App Engine
This is Rietveld 408576698