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

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

Issue 1900913002: Settings People Revamp: Split Profile Info out into its own handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 930865fb2bb1d3f5f804397ca37c3c56b8d54cee..c265cbfb62a2e1b47bb8f84bf1a790383ceb9daa 100644
--- a/chrome/browser/ui/webui/settings/people_handler.h
+++ b/chrome/browser/ui/webui/settings/people_handler.h
@@ -13,7 +13,6 @@
#include "base/strings/utf_string_conversions.h"
#include "base/timer/timer.h"
#include "build/build_config.h"
-#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "chrome/browser/sync/sync_startup_tracker.h"
#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
#include "chrome/browser/ui/webui/signin/login_ui_service.h"
@@ -21,11 +20,6 @@
#include "components/signin/core/browser/signin_manager_base.h"
#include "components/sync_driver/sync_service_observer.h"
-#if defined(OS_CHROMEOS)
-#include "content/public/browser/notification_observer.h"
-#include "content/public/browser/notification_registrar.h"
-#endif
-
class LoginUIService;
class ProfileSyncService;
class SigninManagerBase;
@@ -45,11 +39,7 @@ class PeopleHandler : public SettingsPageUIHandler,
public SigninManagerBase::Observer,
public SyncStartupTracker::Observer,
public LoginUIService::LoginUI,
- public sync_driver::SyncServiceObserver,
-#if defined(OS_CHROMEOS)
- public content::NotificationObserver,
-#endif
- public ProfileAttributesStorage::Observer {
+ public sync_driver::SyncServiceObserver {
public:
explicit PeopleHandler(Profile* profile);
~PeopleHandler() override;
@@ -75,18 +65,6 @@ class PeopleHandler : public SettingsPageUIHandler,
// sync_driver::SyncServiceObserver implementation.
void OnStateChanged() override;
-#if defined(OS_CHROMEOS)
- // content::NotificationObserver implementation.
- void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) override;
-#endif
-
- // ProfileAttributesStorage::Observer 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(bool creating_supervised_user);
@@ -214,11 +192,6 @@ class PeopleHandler : public SettingsPageUIHandler,
// Used to listen for pref changes to allow or disallow signin.
PrefChangeRegistrar profile_pref_registrar_;
-#if defined(OS_CHROMEOS)
- // Used to listen to ChromeOS user image changes.
- content::NotificationRegistrar registrar_;
-#endif
-
// Manages observer lifetime.
ScopedObserver<ProfileSyncService, PeopleHandler> sync_service_observer_;
« 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