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

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

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
« no previous file with comments | « chrome/browser/ui/webui/profile_info_watcher.h ('k') | chrome/browser/ui/webui/settings/people_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/profile_info_watcher.cc
diff --git a/chrome/browser/ui/webui/profile_info_watcher.cc b/chrome/browser/ui/webui/profile_info_watcher.cc
index b49ca13481e358a554f614d77914560fa36c26e1..3286a9fbeed3fb42ae479e6b2267de2154ad070d 100644
--- a/chrome/browser/ui/webui/profile_info_watcher.cc
+++ b/chrome/browser/ui/webui/profile_info_watcher.cc
@@ -8,7 +8,6 @@
#include "base/bind_helpers.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
-#include "chrome/browser/profiles/profile_info_cache.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/signin/signin_manager_factory.h"
#include "chrome/common/pref_names.h"
@@ -25,7 +24,7 @@ ProfileInfoWatcher::ProfileInfoWatcher(
ProfileManager* profile_manager = g_browser_process->profile_manager();
// The profile_manager might be NULL in testing environments.
if (profile_manager)
- profile_manager->GetProfileInfoCache().AddObserver(this);
+ profile_manager->GetProfileAttributesStorage().AddObserver(this);
signin_allowed_pref_.Init(prefs::kSigninAllowed, profile_->GetPrefs(),
base::Bind(&ProfileInfoWatcher::RunCallback, base::Unretained(this)));
@@ -35,7 +34,7 @@ ProfileInfoWatcher::~ProfileInfoWatcher() {
ProfileManager* profile_manager = g_browser_process->profile_manager();
// The profile_manager might be NULL in testing environments.
if (profile_manager)
- profile_manager->GetProfileInfoCache().RemoveObserver(this);
+ profile_manager->GetProfileAttributesStorage().RemoveObserver(this);
}
void ProfileInfoWatcher::OnProfileAuthInfoChanged(
« no previous file with comments | « chrome/browser/ui/webui/profile_info_watcher.h ('k') | chrome/browser/ui/webui/settings/people_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698