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

Unified Diff: chrome/browser/ui/webui/settings/profile_info_handler.h

Issue 2603423002: cros: Fix user image change crash (Closed)
Patch Set: rebase Created 3 years, 12 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/ui/webui/settings/profile_info_handler.h
diff --git a/chrome/browser/ui/webui/settings/profile_info_handler.h b/chrome/browser/ui/webui/settings/profile_info_handler.h
index c7919c49b7331350492978b88472c51b6b1ef65e..6aa21f0e8b99773e1b0e6c3dc7356c548f70f9cb 100644
--- a/chrome/browser/ui/webui/settings/profile_info_handler.h
+++ b/chrome/browser/ui/webui/settings/profile_info_handler.h
@@ -16,8 +16,6 @@
#if defined(OS_CHROMEOS)
#include "components/user_manager/user_manager.h"
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
#else
#include "chrome/browser/profiles/profile_statistics_common.h"
#endif
@@ -86,6 +84,11 @@ class ProfileInfoHandler : public SettingsPageUIHandler,
// Weak pointer.
Profile* profile_;
+#if defined(OS_CHROMEOS)
+ ScopedObserver<user_manager::UserManager, ProfileInfoHandler>
+ user_manager_observer_;
+#endif
+
ScopedObserver<ProfileAttributesStorage, ProfileInfoHandler>
profile_observer_;

Powered by Google App Engine
This is Rietveld 408576698