Index: chrome/browser/profiles/profile_info_cache.h |
diff --git a/chrome/browser/profiles/profile_info_cache.h b/chrome/browser/profiles/profile_info_cache.h |
index 8b7b8f844f73b2b3b69b44355849c394f72013c1..a0c25e43cd84a376007203d3b5c178989b459f5a 100644 |
--- a/chrome/browser/profiles/profile_info_cache.h |
+++ b/chrome/browser/profiles/profile_info_cache.h |
@@ -63,6 +63,10 @@ class ProfileInfoCache { |
static int GetDefaultAvatarIconResourceIDAtIndex(size_t index); |
// Returns a URL for the default avatar icon with specified index. |
static std::string GetDefaultAvatarIconUrl(size_t index); |
+ // Checks if the given URL points to one of the default avatar icons. If it |
+ // is, returns true and its index through |icon_index|. If not, returns false. |
+ static bool IsDefaultAvatarIconUrl(const std::string& icon_url, |
+ size_t *icon_index); |
// Register cache related preferences in Local State. |
static void RegisterPrefs(PrefService* prefs); |