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

Unified Diff: chrome/browser/profiles/profiles_state.h

Issue 1794353003: Refactor ProfileInfoCache in c/b/profiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replaced LOG(WARNING) by UMA histograms 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/profiles/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
index 3b5f8b065601d1b744a27ca4bdb4fd51c709395d..6b8f79fecbfd928e1bc2007fb8b7ad131f9fe4b6 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -44,11 +44,10 @@ base::string16 GetAvatarButtonTextForProfile(Profile* profile);
// menu item. Adds a supervision indicator to the profile name if appropriate.
base::string16 GetProfileSwitcherTextForItem(const AvatarMenu::Item& item);
-// Update the name of |profile| to |new_profile_name|. This updates the
-// profile preferences, which triggers an update in the ProfileInfoCache.
-// This method should be called when the user is explicitely changing
-// the profile name, as it will always set |prefs::kProfileUsingDefaultName|
-// to false.
+// Update the name of |profile| to |new_profile_name|. This updates the profile
+// preferences, which triggers an update in the ProfileAttributesStorage. This
+// method should be called when the user is explicitely changing the profile
+// name, as it will always set |prefs::kProfileUsingDefaultName| to false.
void UpdateProfileName(Profile* profile,
const base::string16& new_profile_name);
@@ -67,8 +66,8 @@ bool IsRegularOrGuestSession(Browser* browser);
// Returns true if sign in is required to browse as this profile. Call with
// profile->GetPath() if you have a profile pointer.
// TODO(mlerman): Refactor appropriate calls to
-// ProfileInfoCache::ProfileIsSigninRequiredAtIndex to call here instead.
-bool IsProfileLocked(const base::FilePath& path);
+// ProfileAttributesStorage::IsSigninRequired to call here instead.
+bool IsProfileLocked(const base::FilePath& profile_path);
// If the lock-enabled information for this profile is not up to date, starts
// an update for the Gaia profile info.

Powered by Google App Engine
This is Rietveld 408576698