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

Unified Diff: chrome/browser/supervised_user/child_accounts/child_account_service.h

Issue 971383002: Removing FRE UI for unicorn accounts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/supervised_user/child_accounts/child_account_service.h
diff --git a/chrome/browser/supervised_user/child_accounts/child_account_service.h b/chrome/browser/supervised_user/child_accounts/child_account_service.h
index 4a1519670d151ea72d94199ac39cda71cf43e7db..eb395232b59a4cb7702c73558d4c2b82cc7a56a6 100644
--- a/chrome/browser/supervised_user/child_accounts/child_account_service.h
+++ b/chrome/browser/supervised_user/child_accounts/child_account_service.h
@@ -11,9 +11,11 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
+#include "base/observer_list.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "chrome/browser/supervised_user/child_accounts/family_info_fetcher.h"
+#include "chrome/browser/supervised_user/child_accounts/flags_fetching_observer.h"
#include "chrome/browser/supervised_user/supervised_user_service.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/signin/core/browser/account_service_flag_fetcher.h"
@@ -46,6 +48,10 @@ class ChildAccountService : public KeyedService,
// KeyedService:
void Shutdown() override;
+ // Adds/removes observer.
+ void AddFlagFetchingObserver(FlagsFetchingObserver* observer);
+ void RemoveFlagFetchingObserver(FlagsFetchingObserver* observer);
+
private:
friend class ChildAccountServiceFactory;
// Use |ChildAccountServiceFactory::GetForProfile(...)| to get an instance of
@@ -109,6 +115,8 @@ class ChildAccountService : public KeyedService,
base::OneShotTimer<ChildAccountService> family_fetch_timer_;
net::BackoffEntry family_fetch_backoff_;
+ ObserverList<FlagsFetchingObserver> observer_list_;
+
base::WeakPtrFactory<ChildAccountService> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(ChildAccountService);

Powered by Google App Engine
This is Rietveld 408576698