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

Unified Diff: chrome/browser/chromeos/arc/arc_auth_service.cc

Issue 2133503002: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: More rebasing Created 4 years, 5 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 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());
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_auth_service.h ('k') | chrome/browser/chromeos/arc/arc_downloads_watcher_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698