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

Unified Diff: chrome/browser/chromeos/login/signin_screen_controller.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/signin_screen_controller.h
diff --git a/chrome/browser/chromeos/login/signin_screen_controller.h b/chrome/browser/chromeos/login/signin_screen_controller.h
index b60cb2f53c4706cadff04919a339fa3cdae235b0..02d67866b185371d37f656b44ebef50ab39dd21d 100644
--- a/chrome/browser/chromeos/login/signin_screen_controller.h
+++ b/chrome/browser/chromeos/login/signin_screen_controller.h
@@ -11,6 +11,7 @@
#include "chrome/browser/chromeos/login/ui/login_display_host.h"
#include "components/user_manager/remove_user_delegate.h"
#include "components/user_manager/user.h"
+#include "components/user_manager/user_manager.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -28,6 +29,7 @@ class OobeUI;
// the user. It is a 'per-session' class; SignInScreenHandler, in comparsion, is
// tied to the WebContents lifetime and therefore may live beyond this class.
class SignInScreenController : public user_manager::RemoveUserDelegate,
+ public user_manager::UserManager::Observer,
public content::NotificationObserver {
public:
SignInScreenController(OobeUI* oobe_ui,
@@ -61,6 +63,9 @@ class SignInScreenController : public user_manager::RemoveUserDelegate,
void OnBeforeUserRemoved(const AccountId& account_id) override;
void OnUserRemoved(const AccountId& account_id) override;
+ // user_manager::UserManager::Observer implementation:
+ void OnUserImageChanged(const user_manager::User& user) override;
+
// content::NotificationObserver implementation.
void Observe(int type,
const content::NotificationSource& source,
« no previous file with comments | « chrome/browser/chromeos/login/screens/user_image_screen.cc ('k') | chrome/browser/chromeos/login/signin_screen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698