Skip to content

Commit

Permalink
[Linux] Set the new avatar bubble's background correctly
Browse files Browse the repository at this point in the history
BUG=378982

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283176 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
noms@chromium.org committed Jul 15, 2014
1 parent 3257a2d commit 9c70c93
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions chrome/browser/ui/views/profiles/profile_chooser_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,9 @@ ProfileChooserView::ProfileChooserView(views::View* anchor_view,
gaia_service_type_(service_type) {
// Reset the default margins inherited from the BubbleDelegateView.
set_margins(gfx::Insets());

set_background(views::Background::CreateSolidBackground(
GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground)));
ResetView();

avatar_menu_.reset(new AvatarMenu(
Expand Down Expand Up @@ -613,10 +615,6 @@ void ProfileChooserView::ShowView(profiles::BubbleViewMode view_to_display,
layout = CreateSingleColumnLayout(this, kFixedMenuWidth);
sub_view = CreateProfileChooserView(avatar_menu, last_tutorial_mode);
}
sub_view->set_background(views::Background::CreateSolidBackground(
GetNativeTheme()->GetSystemColor(
ui::NativeTheme::kColorId_DialogBackground)));

layout->StartRow(1, 0);
layout->AddView(sub_view);
Layout();
Expand Down

0 comments on commit 9c70c93

Please sign in to comment.