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

Unified Diff: components/user_manager/user.h

Issue 2517053004: Use base::RefCountedBytes in user_manager::UserImage (Closed)
Patch Set: remove unnecessary base::move 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 be6b8eaaa9bc3e8574588ab1cd99b375ec23b782..8f0243e92c9cbb74ed88a588bea285e26c46e02d 100644
--- a/components/user_manager/user.h
+++ b/components/user_manager/user.h
@@ -135,7 +135,7 @@ class USER_MANAGER_EXPORT User : public UserInfo {
int image_index() const { return image_index_; }
bool has_image_bytes() const { return user_image_->has_image_bytes(); }
// Returns bytes representation of static user image for WebUI.
- const UserImage::Bytes& image_bytes() const {
+ scoped_refptr<base::RefCountedBytes> image_bytes() const {
return user_image_->image_bytes();
}
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/user_image_source.cc ('k') | components/user_manager/user_image/user_image.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698