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

Unified Diff: chrome/browser/ui/webui/profile_info_watcher.h

Issue 1723643002: Refactor ProfileInfoCache in c/b/ui/webui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a signed/unsigned integer conversion, one removed #include Created 4 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/profile_info_watcher.h
diff --git a/chrome/browser/ui/webui/profile_info_watcher.h b/chrome/browser/ui/webui/profile_info_watcher.h
index dc93645e07ce36db41c1a75cb68d2687d5abc96c..114282d6a329af6c410104b0f2c4f80dcc11a7c3 100644
--- a/chrome/browser/ui/webui/profile_info_watcher.h
+++ b/chrome/browser/ui/webui/profile_info_watcher.h
@@ -9,7 +9,7 @@
#include "base/callback.h"
#include "base/macros.h"
-#include "chrome/browser/profiles/profile_info_cache_observer.h"
+#include "chrome/browser/profiles/profile_attributes_storage.h"
#include "components/prefs/pref_member.h"
class Profile;
@@ -17,7 +17,7 @@ class SigninManagerBase;
// Watches profiles for changes in their cached info (e.g. the authenticated
// username changes).
-class ProfileInfoWatcher : public ProfileInfoCacheObserver {
+class ProfileInfoWatcher : public ProfileAttributesStorage::Observer {
public:
ProfileInfoWatcher(Profile* profile, const base::Closure& callback);
~ProfileInfoWatcher() override;
@@ -26,7 +26,7 @@ class ProfileInfoWatcher : public ProfileInfoCacheObserver {
std::string GetAuthenticatedUsername() const;
private:
- // ProfileInfoCacheObserver:
+ // ProfileAttributesStorage::Observer:
void OnProfileAuthInfoChanged(const base::FilePath& profile_path) override;
// Gets the SigninManagerBase for |profile_|.
« no previous file with comments | « chrome/browser/ui/webui/options/sync_setup_handler.cc ('k') | chrome/browser/ui/webui/profile_info_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698