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

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

Issue 222313005: [Profiles] Download high-res avatars using the --new-profile-management flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix broken unit tests & make new test better Created 6 years, 8 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 1ed780330da5ff595bd41eab15c2382dfcaa2ca3..6c426e0fda38ef55a980fdd3a1be818917ec74e5 100644
--- a/chrome/browser/profiles/profile_avatar_icon_util.h
+++ b/chrome/browser/profiles/profile_avatar_icon_util.h
@@ -5,8 +5,17 @@
#ifndef CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_
#define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_ICON_UTIL_H_
+#include <string>
+
#include "third_party/skia/include/core/SkColor.h"
-#include "ui/gfx/image/image.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace gfx {
+class Image;
+}
namespace profiles {
@@ -43,6 +52,9 @@ const char* GetDefaultAvatarIconFileNameAtIndex(size_t index);
// Gets the file name of an avatar that has no high res version.
const char* GetNoHighResAvatarFileName();
+// Gets the full path of the high res avatar icon at |index|.
+base::FilePath GetPathOfHighResAvatarAtIndex(size_t index);
+
// Returns a URL for the default avatar icon with specified index.
std::string GetDefaultAvatarIconUrl(size_t index);

Powered by Google App Engine
This is Rietveld 408576698