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

Unified Diff: chrome/browser/ui/views/outdated_upgrade_bubble_view.cc

Issue 941133002: Update global error bubble view's boundary (position and size) after loading elevation icon. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
diff --git a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
index bf78be05b8c44d97dbf9fe869de95b1ff50c65d4..81972b0f9c4cadfad9d5350189f67f11a3428d7e 100644
--- a/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
+++ b/chrome/browser/ui/views/outdated_upgrade_bubble_view.cc
@@ -110,7 +110,10 @@ void OutdatedUpgradeBubbleView::Init() {
accept_button_->SetStyle(views::Button::STYLE_BUTTON);
accept_button_->SetIsDefault(true);
accept_button_->SetFontList(rb.GetFontList(ui::ResourceBundle::BoldFont));
- elevation_icon_setter_.reset(new ElevationIconSetter(accept_button_));
+ elevation_icon_setter_.reset(new ElevationIconSetter(
+ accept_button_,
+ base::Bind(&OutdatedUpgradeBubbleView::SizeToContents,
+ base::Unretained(this))));
later_button_ = new views::LabelButton(
this, l10n_util::GetStringUTF16(IDS_LATER));
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698