Index: chrome/browser/chromeos/login/user.h |
diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h |
index c6042f525b5d0ffeaf73a8e576a224d797d97d9b..a4377ab1c66b48aef9e7980676186daf180731f6 100644 |
--- a/chrome/browser/chromeos/login/user.h |
+++ b/chrome/browser/chromeos/login/user.h |
@@ -74,6 +74,10 @@ class User { |
return user_image_.animated_image(); |
} |
+ // Returns the URL of user image, if there is any. Currently only the profile |
+ // image has a URL, for other images empty URL is returned. |
+ GURL image_url() const { return user_image_.url(); } |
+ |
// The thumbnail of user custom wallpaper. |
const SkBitmap& wallpaper_thumbnail() const { return wallpaper_thumbnail_; } |
@@ -104,6 +108,8 @@ class User { |
// Setters are private so only UserManager can call them. |
void SetImage(const UserImage& user_image, int image_index); |
+ void SetImageURL(const GURL& image_url); |
+ |
// Sets a stub image until the next |SetImage| call. |image_index| may be |
// one of |kExternalImageIndex| or |kProfileImageIndex|. |
void SetStubImage(int image_index); |