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

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

Issue 381953002: New avatar button: Consolidate text elision between Mac and Win/Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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/extensions/menu_manager.cc ('k') | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profiles_state.h
diff --git a/chrome/browser/profiles/profiles_state.h b/chrome/browser/profiles/profiles_state.h
index a4b4c33f957fa098dc1dd8c26985e0ba19c245aa..649e1c73a8f139f1ca3f5c0aac0d1cd6b3031578 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -34,6 +34,11 @@ void RegisterPrefs(PrefRegistrySimple* registry);
// custom name.
base::string16 GetAvatarNameForProfile(const base::FilePath& profile_path);
+// Returns the string to use in the avatar button for the specified profile.
+// This is essentially the name returned by GetAvatarNameForProfile, but it
+// may be elided and contain an indicator for supervised users.
+base::string16 GetAvatarButtonTextForProfile(Profile* profile);
+
// Update the name of |profile| to |new_profile_name|. This updates the
// profile preferences, which triggers an update in the ProfileInfoCache.
void UpdateProfileName(Profile* profile,
« no previous file with comments | « chrome/browser/extensions/menu_manager.cc ('k') | chrome/browser/profiles/profiles_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698