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

Unified Diff: chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h

Issue 2568973002: chromeos: Replace user image notifications with observer (Closed)
Patch Set: rebase Created 4 years 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/login/users/avatar/user_image_sync_observer.h
diff --git a/chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h b/chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h
index 7d03d257ee28f52ae1fa1003632dfaf766cb6ca0..f2a865aa863e2745a7f2bb1a8984c77aed0636fb 100644
--- a/chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h
+++ b/chrome/browser/chromeos/login/users/avatar/user_image_sync_observer.h
@@ -10,6 +10,7 @@
#include "base/observer_list.h"
#include "components/sync_preferences/pref_service_syncable_observer.h"
+#include "components/user_manager/user_manager.h"
#include "content/public/browser/notification_observer.h"
class PrefChangeRegistrar;
@@ -37,7 +38,8 @@ namespace chromeos {
// image saved in syncable preference.
class UserImageSyncObserver
: public sync_preferences::PrefServiceSyncableObserver,
- public content::NotificationObserver {
+ public content::NotificationObserver,
+ public user_manager::UserManager::Observer {
public:
class Observer {
public:
@@ -72,6 +74,9 @@ class UserImageSyncObserver
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
+ // user_manager::UserManager::Observer implementation.
+ void OnUserImageChanged(const user_manager::User& user) override;
+
// Called after user profile was loaded.
void OnProfileGained(Profile* profile);

Powered by Google App Engine
This is Rietveld 408576698