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

Unified Diff: ash/common/system/user/user_card_view.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 | « ash/common/system/user/tray_user.cc ('k') | ash/public/interfaces/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/user/user_card_view.cc
diff --git a/ash/common/system/user/user_card_view.cc b/ash/common/system/user/user_card_view.cc
index bf56606b5cab54faf2e6c6044c4d54577308c89c..dace052ecfe3393c6dea11f7b64c67684abd4a1b 100644
--- a/ash/common/system/user/user_card_view.cc
+++ b/ash/common/system/user/user_card_view.cc
@@ -65,9 +65,7 @@ views::View* CreateUserAvatarView(LoginStatus login_status, int user_index) {
image_view->SetImage(icon, icon.size());
} else {
SessionController* controller = Shell::Get()->session_controller();
- // TODO(xiyuan); HiDpi avatar support. http://crbug.com/702689
- image_view->SetImage(gfx::ImageSkia::CreateFrom1xBitmap(
- controller->GetUserSession(user_index)->avatar),
+ image_view->SetImage(controller->GetUserSession(user_index)->avatar,
gfx::Size(kTrayItemSize, kTrayItemSize));
}
« no previous file with comments | « ash/common/system/user/tray_user.cc ('k') | ash/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698