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

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

Issue 7590002: [cros] Added histograms for user image usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: No write to map for default images Created 9 years, 4 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/chromeos/login/user_manager.h
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h
index d6c64a129bddf70fd3a72b5106fe55afe595f657..2ca1b54acf6ec6628266ee7f4085121c6265b6c1 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -62,8 +62,10 @@ class UserManager : public UserImageLoader::Delegate,
bool NeedsNameTooltip() const;
// The image for this user.
- void set_image(const SkBitmap& image) { image_ = image; }
+ void SetImage(const SkBitmap& image,
+ int default_image_index);
const SkBitmap& image() const { return image_; }
+ int default_image_index() const { return default_image_index_; }
// OAuth token status for this user.
OAuthTokenStatus oauth_token_status() const { return oauth_token_status_; }
@@ -80,6 +82,10 @@ class UserManager : public UserImageLoader::Delegate,
// Cached flag of whether any users has same display name.
bool is_displayname_unique_;
+
+ // Index of the default image the user has set. -1 if it's some other
+ // image.
+ int default_image_index_;
};
// Gets a shared instance of a UserManager. Not thread-safe...should

Powered by Google App Engine
This is Rietveld 408576698