Refactor ProfileInfoCache in c/b/ui/webui/options
ProfileInfoCache is being refactored into ProfileAttributesStorage and
ProfileAttributesEntry, which use profile paths instead of numerical
indices in the interface. See
https://codereview.chromium.org/1599013002/ for details.
BUG=305720
Review URL: https://codereview.chromium.org/1695683003
Cr-Commit-Position: refs/heads/master@{#376633}
diff --git a/chrome/browser/profiles/profile_attributes_storage.h b/chrome/browser/profiles/profile_attributes_storage.h
index 0036813..cb55bf0 100644
--- a/chrome/browser/profiles/profile_attributes_storage.h
+++ b/chrome/browser/profiles/profile_attributes_storage.h
@@ -58,6 +58,14 @@
// Returns the count of known profiles.
virtual size_t GetNumberOfProfiles() const = 0;
+ // Returns a unique name that can be assigned to a newly created profile.
+ virtual base::string16 ChooseNameForNewProfile(size_t icon_index) const = 0;
+
+ // 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.
+ virtual size_t ChooseAvatarIconIndexForNewProfile() const = 0;
+
virtual void AddObserver(ProfileAttributesStorage::Observer* observer) = 0;
virtual void RemoveObserver(ProfileAttributesStorage::Observer* observer) = 0;