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

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

Issue 10830111: [cros] Encode user images when set from WebUI (regression fix). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes Created 8 years, 5 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.h
diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h
index 48d0f6e34d75d6ec0486357acc1b9b76769c6c8e..d7d5f326fedfa5c1f66029162200916e3101df3a 100644
--- a/chrome/browser/chromeos/login/user.h
+++ b/chrome/browser/chromeos/login/user.h
@@ -66,9 +66,8 @@ class User {
// The image for this user.
const gfx::ImageSkia& image() const { return user_image_.image(); }
- bool has_default_image() const {
- return image_index_ >= 0 && image_index_ < kDefaultImagesCount;
- }
+ // Whether the user has a default image.
+ bool HasDefaultImage() const;
int image_index() const { return image_index_; }
bool has_raw_image() const { return user_image_.has_raw_image(); }

Powered by Google App Engine
This is Rietveld 408576698