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

Unified Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 895803003: [Profiles] Remove the NotificationService from the ProfileInfoCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copy paste the right function Created 5 years, 10 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/options/browser_options_handler.h
diff --git a/chrome/browser/ui/webui/options/browser_options_handler.h b/chrome/browser/ui/webui/options/browser_options_handler.h
index e5f26ee494eef00555fcdaf3d99a7db29fd679b6..f30a87350d8b074b71f1453daee67d53218ae756 100644
--- a/chrome/browser/ui/webui/options/browser_options_handler.h
+++ b/chrome/browser/ui/webui/options/browser_options_handler.h
@@ -16,6 +16,7 @@
#include "base/prefs/pref_member.h"
#include "base/scoped_observer.h"
#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/profiles/profile_info_cache_observer.h"
#include "chrome/browser/shell_integration.h"
#include "chrome/browser/sync/profile_sync_service_observer.h"
#include "chrome/browser/ui/host_desktop.h"
@@ -53,6 +54,7 @@ namespace options {
// Chrome browser options page UI handler.
class BrowserOptionsHandler
: public OptionsPageUIHandler,
+ public ProfileInfoCacheObserver,
public ProfileSyncServiceObserver,
public SigninManagerBase::Observer,
public ui::SelectFileDialog::Listener,
@@ -113,6 +115,14 @@ class BrowserOptionsHandler
const content::NotificationSource& source,
const content::NotificationDetails& details) override;
+ // ProfileInfoCacheObserver implementation.
+ 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 OnProfileAvatarChanged(const base::FilePath& profile_path) override;
+
#if defined(ENABLE_PRINT_PREVIEW) && !defined(OS_CHROMEOS)
void OnCloudPrintPrefsChanged();
#endif

Powered by Google App Engine
This is Rietveld 408576698