Index: chrome/browser/ui/webui/options/manage_profile_handler.h |
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.h b/chrome/browser/ui/webui/options/manage_profile_handler.h |
index 95ceaa75e6bcbbb6524e0e7104f0425b07c7a347..ecf1f1511353eb04107960cdd797946ccbe1ee30 100644 |
--- a/chrome/browser/ui/webui/options/manage_profile_handler.h |
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.h |
@@ -9,9 +9,9 @@ |
#include "base/memory/weak_ptr.h" |
#include "base/prefs/pref_change_registrar.h" |
+#include "chrome/browser/profiles/profile_info_cache_observer.h" |
#include "chrome/browser/sync/profile_sync_service_observer.h" |
#include "chrome/browser/ui/webui/options/options_ui.h" |
-#include "content/public/browser/notification_observer.h" |
namespace base { |
class StringValue; |
@@ -21,7 +21,7 @@ namespace options { |
// Chrome personal stuff profiles manage overlay UI handler. |
class ManageProfileHandler : public OptionsPageUIHandler, |
- public content::NotificationObserver, |
+ public ProfileInfoCacheObserver, |
public ProfileSyncServiceObserver { |
public: |
ManageProfileHandler(); |
@@ -36,10 +36,13 @@ class ManageProfileHandler : public OptionsPageUIHandler, |
// WebUIMessageHandler: |
void RegisterMessages() override; |
- // content::NotificationObserver: |
- void Observe(int type, |
- const content::NotificationSource& source, |
- const content::NotificationDetails& details) override; |
+ // ProfileInfoCacheObserver: |
+ void OnProfileAdded(const base::FilePath& profile_path) override; |
+ void OnProfileWasRemoved(const base::FilePath& profile_path, |
+ const base::string16& profile_name) override; |
+ void OnProfileNameChanged(const base::FilePath& profile_path, |
+ const base::string16& old_profile_name) override; |
+ void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
// ProfileSyncServiceObserver: |
void OnStateChanged() override; |