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

Unified Diff: chrome/browser/chromeos/login/user.cc

Issue 10667034: [cros] Cache the URL of user's G+ profile photo to prevent redundant downloads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/user_image.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user.cc
diff --git a/chrome/browser/chromeos/login/user.cc b/chrome/browser/chromeos/login/user.cc
index 777eec1ed0dba86caae0bdd9044de2a1da7f29f6..e3f79d67eb45de824be0c201c097c00d0d76d9d4 100644
--- a/chrome/browser/chromeos/login/user.cc
+++ b/chrome/browser/chromeos/login/user.cc
@@ -55,6 +55,10 @@ void User::SetImage(const UserImage& user_image, int image_index) {
image_is_stub_ = false;
}
+void User::SetImageURL(const GURL& image_url) {
+ user_image_.set_url(image_url);
+}
+
void User::SetStubImage(int image_index) {
user_image_.SetImage(*ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
kStubImageResourceID));
« no previous file with comments | « chrome/browser/chromeos/login/user.h ('k') | chrome/browser/chromeos/login/user_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698