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

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: 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 | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | chrome/browser/profiles/profiles_state.cc » ('J')
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..1682a2e1cccf140ca441cf74e49c05da76ae48b9 100644
--- a/chrome/browser/profiles/profiles_state.h
+++ b/chrome/browser/profiles/profiles_state.h
@@ -13,6 +13,7 @@ class PrefRegistrySimple;
class Profile;
class SigninErrorController;
namespace base { class FilePath; }
+namespace gfx { class FontList; }
namespace profiles {
@@ -34,6 +35,12 @@ 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,
+ const gfx::FontList& font_list);
+
// 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 | « no previous file | chrome/browser/profiles/profiles_state.cc » ('j') | chrome/browser/profiles/profiles_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698