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

Unified Diff: components/arc/arc_service_manager.cc

Issue 2487623002: Notify Files App when ARC++ app is installed/removed (Closed)
Patch Set: Addressed comments. Created 4 years, 1 month 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: components/arc/arc_service_manager.cc
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc
index 6d6a25f5fdf87cc191176b86f63f1177cde0239f..478ad5fd2612f2aa40be2a4e2a091801d11c1902 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -105,6 +105,19 @@ void ArcServiceManager::OnPrimaryUserProfilePrepared(
account_id));
}
+void ArcServiceManager::AddObserver(Observer* observer) {
+ observer_list_.AddObserver(observer);
+}
+
+void ArcServiceManager::RemoveObserver(Observer* observer) {
+ observer_list_.RemoveObserver(observer);
+}
+
+void ArcServiceManager::OnAppsUpdated() {
+ for (auto& observer : observer_list_)
+ observer.OnAppsUpdated();
+}
+
void ArcServiceManager::Shutdown() {
icon_loader_ = nullptr;
activity_resolver_ = nullptr;

Powered by Google App Engine
This is Rietveld 408576698