Index: chrome/browser/notifications/message_center_settings_controller.h |
diff --git a/chrome/browser/notifications/message_center_settings_controller.h b/chrome/browser/notifications/message_center_settings_controller.h |
index 045e88c616f4ae19031896c8a6f41aa46c748946..c3304f985d903bb5da3a580588a2b7d0d71c64b8 100644 |
--- a/chrome/browser/notifications/message_center_settings_controller.h |
+++ b/chrome/browser/notifications/message_center_settings_controller.h |
@@ -14,6 +14,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "base/observer_list.h" |
#include "chrome/browser/extensions/app_icon_loader.h" |
+#include "chrome/browser/profiles/profile_info_cache_observer.h" |
#include "components/content_settings/core/common/content_settings.h" |
#include "components/favicon_base/favicon_types.h" |
#include "content/public/browser/notification_details.h" |
@@ -46,6 +47,7 @@ class ProfileNotifierGroup; |
class MessageCenterSettingsController |
: public message_center::NotifierSettingsProvider, |
public content::NotificationObserver, |
+ public ProfileInfoCacheObserver, |
#if defined(OS_CHROMEOS) |
public user_manager::UserManager::UserSessionStateObserver, |
#endif |
@@ -90,6 +92,14 @@ class MessageCenterSettingsController |
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 OnProfileUserNameChanged(const base::FilePath& profile_path) override; |
+ |
void OnFaviconLoaded(const GURL& url, |
const favicon_base::FaviconImageResult& favicon_result); |