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

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

Issue 7155015: Store profile avatar to preferences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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/app/generated_resources.grd ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/profiles/profile_info_cache.h
===================================================================
--- chrome/browser/profiles/profile_info_cache.h (revision 91576)
+++ chrome/browser/profiles/profile_info_cache.h (working copy)
@@ -44,6 +44,16 @@
void SetNameOfProfileAtIndex(size_t index, const string16& name);
void SetAvatarIconOfProfileAtIndex(size_t index, size_t icon_index);
+ // Returns unique name that can be assigned to a newly created profile.
+ string16 ChooseNameForNewProfile();
+
+ // Returns an avatar icon index that can be assigned to a newly created
+ // profile. Note that the icon may not be unique since there are a limited
+ // set of default icons.
+ int ChooseAvatarIconIndexForNewProfile();
+
+ const FilePath& GetUserDataDir() const;
+
// Gets the number of default avatar icons that exist.
static size_t GetDefaultAvatarIconCount();
// Gets the resource ID of the default avatar icon at |index|.
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/profiles/profile_info_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698