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

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

Issue 2190483003: arc: Revamp the ArcBridgeService interface (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2785
Patch Set: One less diff line 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 9c283754b21e684789bbf9f5c014a72013e6004a..1253369bad40adaffa553f9a61a2797121241e87 100644
--- a/chrome/browser/chromeos/arc/arc_auth_service.cc
+++ b/chrome/browser/chromeos/arc/arc_auth_service.cc
@@ -101,6 +101,7 @@ ArcAuthService::ArcAuthService(ArcBridgeService* bridge_service)
arc_auth_service = this;
arc_bridge_service()->AddObserver(this);
+ arc_bridge_service()->auth()->AddObserver(this);
}
ArcAuthService::~ArcAuthService() {
@@ -108,6 +109,7 @@ ArcAuthService::~ArcAuthService() {
DCHECK(arc_auth_service == this);
Shutdown();
+ arc_bridge_service()->auth()->RemoveObserver(this);
arc_bridge_service()->RemoveObserver(this);
arc_auth_service = nullptr;
@@ -190,8 +192,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