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

Unified Diff: chrome/browser/supervised_user/legacy/supervised_user_sync_service.h

Issue 1015013003: SupervisedUserSyncService cleanup: Implement SigninManagerBase::Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 5 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/supervised_user/legacy/supervised_user_sync_service.h
diff --git a/chrome/browser/supervised_user/legacy/supervised_user_sync_service.h b/chrome/browser/supervised_user/legacy/supervised_user_sync_service.h
index 64eff9972d9895b57b1de59ad4bfb736f53f27ff..abde2ac59f2935a7557aea2d6d6f3468de553c30 100644
--- a/chrome/browser/supervised_user/legacy/supervised_user_sync_service.h
+++ b/chrome/browser/supervised_user/legacy/supervised_user_sync_service.h
@@ -11,10 +11,10 @@
#include "base/callback_forward.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
-#include "base/prefs/pref_change_registrar.h"
#include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_observer.h"
#include "chrome/browser/supervised_user/supervised_users.h"
#include "components/keyed_service/core/keyed_service.h"
+#include "components/signin/core/browser/signin_manager_base.h"
#include "sync/api/syncable_service.h"
namespace base {
@@ -26,8 +26,10 @@ class PrefRegistrySyncable;
}
class PrefService;
+class Profile;
class SupervisedUserSyncService : public KeyedService,
+ public SigninManagerBase::Observer,
public syncer::SyncableService {
public:
// For use with GetSupervisedUsersAsync() below.
@@ -126,9 +128,11 @@ class SupervisedUserSyncService : public KeyedService,
// Use |SupervisedUserSyncServiceFactory::GetForProfile(...)| to get an
// instance of this service.
- explicit SupervisedUserSyncService(PrefService* prefs);
+ explicit SupervisedUserSyncService(Profile* profile);
- void OnLastSignedInUsernameChange();
+ // SigninManagerBase::Observer implementation.
+ void GoogleSignedOut(const std::string& account_id,
+ const std::string& username) override;
scoped_ptr<base::DictionaryValue> CreateDictionary(
const std::string& name,
@@ -151,8 +155,8 @@ class SupervisedUserSyncService : public KeyedService,
void DispatchCallbacks();
+ Profile* profile_;
PrefService* prefs_;
- PrefChangeRegistrar pref_change_registrar_;
scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
scoped_ptr<syncer::SyncErrorFactory> error_handler_;
« no previous file with comments | « no previous file | chrome/browser/supervised_user/legacy/supervised_user_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698