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

Unified Diff: ash/common/system/user/tray_user.cc

Issue 2770693002: ash: HiDPI user avatar for SessionController (Closed)
Patch Set: nits, and gn check Created 3 years, 9 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 | « no previous file | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/tray_user.cc
diff --git a/ash/common/system/user/tray_user.cc b/ash/common/system/user/tray_user.cc
index c9035d3d84db5730af29909b682303fe25c0583a..8c5e36ac757f034013e476a7041ecb3261c08d3a 100644
--- a/ash/common/system/user/tray_user.cc
+++ b/ash/common/system/user/tray_user.cc
@@ -245,8 +245,7 @@ void TrayUser::UpdateAvatarImage(LoginStatus status) {
const mojom::UserSession* const user_session =
session_controller->GetUserSession(user_index_);
CHECK(user_session);
- // TODO(xiyuan); HiDpi avatar support. http://crbug.com/702689
- avatar_->SetImage(gfx::ImageSkia::CreateFrom1xBitmap(user_session->avatar),
+ avatar_->SetImage(user_session->avatar,
gfx::Size(kTrayItemSize, kTrayItemSize));
// Unit tests might come here with no images for some users.
« no previous file with comments | « no previous file | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698