| Index: chrome/browser/ui/webui/settings/people_handler.h
|
| diff --git a/chrome/browser/ui/webui/settings/people_handler.h b/chrome/browser/ui/webui/settings/people_handler.h
|
| index 4a05c08bc3294f02d79060986418e3467b0a8d78..2fcff1e0682659e347b029f76e0ab56a64e03bb5 100644
|
| --- a/chrome/browser/ui/webui/settings/people_handler.h
|
| +++ b/chrome/browser/ui/webui/settings/people_handler.h
|
| @@ -12,6 +12,7 @@
|
| #include "base/scoped_observer.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/timer/timer.h"
|
| +#include "chrome/browser/profiles/profile_info_cache_observer.h"
|
| #include "chrome/browser/sync/sync_startup_tracker.h"
|
| #include "chrome/browser/ui/webui/signin/login_ui_service.h"
|
| #include "components/signin/core/browser/signin_manager_base.h"
|
| @@ -37,7 +38,8 @@ class PeopleHandler : public content::WebUIMessageHandler,
|
| public SigninManagerBase::Observer,
|
| public SyncStartupTracker::Observer,
|
| public LoginUIService::LoginUI,
|
| - public sync_driver::SyncServiceObserver {
|
| + public sync_driver::SyncServiceObserver,
|
| + public ProfileInfoCacheObserver {
|
| public:
|
| explicit PeopleHandler(Profile* profile);
|
| ~PeopleHandler() override;
|
| @@ -63,6 +65,11 @@ class PeopleHandler : public content::WebUIMessageHandler,
|
| // sync_driver::SyncServiceObserver implementation.
|
| void OnStateChanged() override;
|
|
|
| + // ProfileInfoCacheObserver implementation.
|
| + void OnProfileNameChanged(const base::FilePath& profile_path,
|
| + const base::string16& old_profile_name) override;
|
| + void OnProfileAvatarChanged(const base::FilePath& profile_path) override;
|
| +
|
| // Initializes the sync setup flow and shows the setup UI.
|
| void OpenSyncSetup(const base::ListValue* args);
|
|
|
| @@ -117,6 +124,7 @@ class PeopleHandler : public content::WebUIMessageHandler,
|
|
|
| private:
|
| // Callbacks from the page.
|
| + void HandleGetProfileInfo(const base::ListValue* args);
|
| void OnDidClosePage(const base::ListValue* args);
|
| void HandleConfigure(const base::ListValue* args);
|
| void HandlePassphraseEntry(const base::ListValue* args);
|
|
|