Commit 3682f35b authored by Jacob Dufault's avatar Jacob Dufault Committed by Commit Bot

cros: Fix user list background for a small number of users

Caused by uninitialized memory so the color would be random.

Change-Id: I49a306a426d723f2f75283b973c1b91e105f12c5
Reviewed-on: https://chromium-review.googlesource.com/1178896Reviewed-by: default avatarWenzhao (Colin) Zang <wzang@chromium.org>
Commit-Queue: Jacob Dufault <jdufault@chromium.org>
Cr-Commit-Position: refs/heads/master@{#583854}
parent eda97a92
......@@ -81,11 +81,11 @@ class ASH_EXPORT ScrollableUsersListView : public views::ScrollView,
static GradientParams BuildForStyle(LoginDisplayStyle style);
// Start color for drawing linear gradient.
SkColor color_from;
SkColor color_from = SK_ColorTRANSPARENT;
// End color for drawing linear gradient.
SkColor color_to;
SkColor color_to = SK_ColorTRANSPARENT;
// Height of linear gradient.
SkScalar height;
SkScalar height = 0;
};
// Updates visibility of scroll bar thumb. Called when hover state changes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment