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

Unified Diff: chrome/browser/chromeos/login/user_manager.h

Issue 8822015: [cros] Profile image downloader is always reset after a download. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments added. Created 9 years 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.cc ('k') | chrome/browser/chromeos/login/user_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/user_manager.h
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h
index 7746f138309fb597734b83123ab94405ffe39dc3..1d6a51fdeeaa0fe869271488283572f8801a3436 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -186,6 +186,7 @@ class UserManager : public ProfileDownloaderDelegate,
// Sets image for user |username| and sends LOGIN_USER_IMAGE_CHANGED
// notification unless this is a new user and image is set for the first time.
+ // If |image| is empty, sets a stub image for the user.
void SetUserImage(const std::string& username,
int image_index,
const SkBitmap& image);
@@ -212,6 +213,10 @@ class UserManager : public ProfileDownloaderDelegate,
int image_index,
bool is_async);
+ // Initializes |downloaded_profile_picture_| with the picture of the logged-in
+ // user.
+ void InitDownloadedProfileImage();
+
// Deletes user's image file. Runs on FILE thread.
void DeleteUserImage(const FilePath& image_path);
« no previous file with comments | « chrome/browser/chromeos/login/user.cc ('k') | chrome/browser/chromeos/login/user_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698