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

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: Created 4 years, 11 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/people_handler.h
diff --git a/chrome/browser/ui/webui/settings/people_handler.h b/chrome/browser/ui/webui/settings/people_handler.h
index ac1ec588cd6f5d8814a4f332e207c3d4d00a81e9..016aa5f9108393059ffb7afb220115dc9665e777 100644
--- a/chrome/browser/ui/webui/settings/people_handler.h
+++ b/chrome/browser/ui/webui/settings/people_handler.h
@@ -13,6 +13,7 @@
#include "base/strings/utf_string_conversions.h"
#include "base/timer/timer.h"
#include "build/build_config.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"
@@ -38,7 +39,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;
@@ -64,6 +66,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);
@@ -118,6 +125,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);
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_ui.cc ('k') | chrome/browser/ui/webui/settings/people_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698