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 cc7bb452da90176148f1d6b20e32d492dbd8f5dc..2f68cd39a8b671c0e9ea76adffb5520cd2d9f717 100644 |
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc |
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc |
@@ -97,6 +97,7 @@ ArcAuthService::ArcAuthService(ArcBridgeService* bridge_service) |
g_arc_auth_service = this; |
arc_bridge_service()->AddObserver(this); |
+ arc_bridge_service()->auth()->AddObserver(this); |
} |
ArcAuthService::~ArcAuthService() { |
@@ -104,6 +105,7 @@ ArcAuthService::~ArcAuthService() { |
DCHECK_EQ(this, g_arc_auth_service); |
Shutdown(); |
+ arc_bridge_service()->auth()->RemoveObserver(this); |
arc_bridge_service()->RemoveObserver(this); |
g_arc_auth_service = nullptr; |
@@ -185,8 +187,8 @@ bool ArcAuthService::IsAllowedForProfile(const Profile* profile) { |
return true; |
} |
-void ArcAuthService::OnAuthInstanceReady() { |
- arc_bridge_service()->auth_instance()->Init( |
+void ArcAuthService::OnInstanceReady() { |
+ arc_bridge_service()->auth()->instance()->Init( |
binding_.CreateInterfacePtrAndBind()); |
} |