Skip to content

Commit

Permalink
Account chooser dialog: show the right default icon.
Browse files Browse the repository at this point in the history
BUG=400674

Review URL: https://codereview.chromium.org/874533002

Cr-Commit-Position: refs/heads/master@{#312842}
  • Loading branch information
vasilii authored and Commit bot committed Jan 23, 2015
1 parent 8ec02a1 commit b390424
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chrome/browser/ui/views/passwords/credentials_item_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ CredentialsItemView::CredentialsItemView(
// the parent can receive the events instead.
image_view_ = new CircularImageView;
image_view_->set_interactive(false);
gfx::Image image =
ResourceBundle::GetSharedInstance().GetImageNamed(IDR_PROFILE_AVATAR_26);
image_view_->SetImageSize(gfx::Size(kIconSize, kIconSize));
image_view_->SetImage(image.ToImageSkia());
gfx::Image image = ResourceBundle::GetSharedInstance().GetImageNamed(
IDR_PROFILE_AVATAR_PLACEHOLDER_LARGE);
DCHECK(image.Width() >= kIconSize && image.Height() >= kIconSize);
UpdateAvatar(image.AsImageSkia());
if (form_.avatar_url.is_valid()) {
// Fetch the actual avatar.
AvatarFetcher* fetcher = new AvatarFetcher(form_.avatar_url,
Expand Down

0 comments on commit b390424

Please sign in to comment.