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

Unified Diff: chrome/browser/ui/webui/options/chromeos/user_image_source.cc

Issue 1747843002: Rename raw_image() to image_bytes() in UserImage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 10 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
« no previous file with comments | « chrome/browser/ui/webui/chromeos/image_source.cc ('k') | components/user_manager/user.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/chromeos/user_image_source.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/user_image_source.cc b/chrome/browser/ui/webui/options/chromeos/user_image_source.cc
index 662f503c1cb81746c2fe83043578f5d524a7190e..66b7d2014745d53232bfcdd5e5fa3e3260287026 100644
--- a/chrome/browser/ui/webui/options/chromeos/user_image_source.cc
+++ b/chrome/browser/ui/webui/options/chromeos/user_image_source.cc
@@ -52,8 +52,8 @@ base::RefCountedMemory* GetUserImageInternal(const AccountId& account_id) {
// for device scale factors up to 4. We do not use SCALE_FACTOR_NONE, as we
// specifically want 100% scale images to not transmit more data than needed.
if (user) {
- if (user->has_raw_image()) {
- return new base::RefCountedBytes(user->raw_image());
+ if (user->has_image_bytes()) {
+ return new base::RefCountedBytes(user->image_bytes());
} else if (user->image_is_stub()) {
return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale(
IDR_PROFILE_PICTURE_LOADING, ui::SCALE_FACTOR_100P);
@@ -63,7 +63,7 @@ base::RefCountedMemory* GetUserImageInternal(const AccountId& account_id) {
[user->image_index()],
ui::SCALE_FACTOR_100P);
} else {
- NOTREACHED() << "User with custom image missing raw data";
+ NOTREACHED() << "User with custom image missing data bytes";
}
}
return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale(
« no previous file with comments | « chrome/browser/ui/webui/chromeos/image_source.cc ('k') | components/user_manager/user.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698