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

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

Issue 2066093003: Refactor fetching profile avatar icons and labels repeated md-settings & md-user-manager (C++) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@avatar-selector-refactor
Patch Set: Created 4 years, 6 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
Index: chrome/browser/profiles/profile_avatar_icon_util.h
diff --git a/chrome/browser/profiles/profile_avatar_icon_util.h b/chrome/browser/profiles/profile_avatar_icon_util.h
index 8d7ed521b60af556c9d5d4960f0c6c22e24269a4..4691d82618e48477f52c84a5e104351ff5d294a8 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.h
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h
@@ -9,6 +9,7 @@
#include <string>
+#include "base/values.h"
#include "third_party/skia/include/core/SkColor.h"
namespace base {
@@ -107,6 +108,10 @@ bool IsDefaultAvatarIconUrl(const std::string& icon_url, size_t *icon_index);
bool GetImageURLWithThumbnailSize(
const GURL& old_url, int thumbnail_size, GURL* new_url);
+// Returns a list of dictionaries containing default profile avatar icons and
+// labels.
+std::unique_ptr<base::ListValue> GetDefaultProfileAvatarIconsAndLabels();
tommycli 2016/06/15 21:22:44 nit: Can ListValue be forward declared here and va
Moe 2016/06/16 13:36:46 Good point. Done.
+
} // namespace profiles
#endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698