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

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

Issue 1536593004: Settings People Revamp: Implement Chrome Profile name/icon selection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix gn build Created 5 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/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);

Powered by Google App Engine
This is Rietveld 408576698