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

Unified Diff: components/user_manager/user.h

Issue 2537713002: Add support for transparent/translucent pixels in the user image (Closed)
Patch Set: Add support for transparent/translucent pixels in the user image Created 4 years, 1 month 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: components/user_manager/user.h
diff --git a/components/user_manager/user.h b/components/user_manager/user.h
index 8f0243e92c9cbb74ed88a588bea285e26c46e02d..c48fd6ebb836252c3a6acc9ce95b28714fd1ef0c 100644
--- a/components/user_manager/user.h
+++ b/components/user_manager/user.h
@@ -138,6 +138,11 @@ class USER_MANAGER_EXPORT User : public UserInfo {
scoped_refptr<base::RefCountedBytes> image_bytes() const {
return user_image_->image_bytes();
}
+ // Returns image format of the bytes representation of static user image
+ // for WebUI.
+ UserImage::ImageFormat image_format() const {
+ return user_image_->image_format();
+ }
// Whether |user_image_| contains data in format that is considered safe to
// decode in sensitive environment (on Login screen).

Powered by Google App Engine
This is Rietveld 408576698