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

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

Issue 171523004: Stop using the old-style profile names when using --new-profile-management (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whitespace Created 6 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/profiles/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
index 85370f2c7be326ac73a33af91c3e39dc50c29b80..995ee5d5a17bde65456df6706b67a1ad220a3bf4 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -25,8 +25,11 @@ base::FilePath GetDefaultProfileDir(const base::FilePath& user_data_dir);
// Register multi-profile related preferences in Local State.
void RegisterPrefs(PrefRegistrySimple* registry);
-// Returns the display name of the active on-the-record profile (or guest).
-base::string16 GetActiveProfileDisplayName(Browser* browser);
+// Returns the display name of the active on-the-record profile (or guest)
+// used in the avatar button. If there is only one local profile present, it
+// will return IDS_SINGLE_PROFILE_DISPLAY_NAME, unless the profile has a
+// user entered custom name.
+base::string16 GetAvatarButtonDisplayNameForProfile(Profile* profile);
groby-ooo-7-16 2014/02/20 20:17:27 GetProfileAvatarName? I'm bikeshedding probably,
rpetterson 2014/02/20 21:41:32 I agree with groby on this one. I think GetAvatarN
noms (inactive) 2014/02/24 22:35:06 Hmm, doesn't avatar name imply "the name of the av
// Update the name of |profile| to |new_profile_name|. This updates the
// profile preferences, which triggers an update in the ProfileInfoCache.

Powered by Google App Engine
This is Rietveld 408576698