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

Unified Diff: chrome/browser/ui/views/global_error_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
Index: chrome/browser/ui/views/global_error_bubble_view.cc
diff --git a/chrome/browser/ui/views/global_error_bubble_view.cc b/chrome/browser/ui/views/global_error_bubble_view.cc
index b4eee9fe2c08966e578db2612a0a4d25061ec5ef..b10d44980c078e00e615f575faec31f1188d067c 100644
--- a/chrome/browser/ui/views/global_error_bubble_view.cc
+++ b/chrome/browser/ui/views/global_error_bubble_view.cc
@@ -102,7 +102,11 @@ GlobalErrorBubbleView::GlobalErrorBubbleView(
accept_button->SetIsDefault(true);
accept_button->set_tag(TAG_ACCEPT_BUTTON);
if (error_->ShouldAddElevationIconToAcceptButton())
- elevation_icon_setter_.reset(new ElevationIconSetter(accept_button.get()));
+ elevation_icon_setter_.reset(
+ new ElevationIconSetter(
+ accept_button.get(),
+ base::Bind(&GlobalErrorBubbleView::SizeToContents,
+ base::Unretained(this))));
base::string16 cancel_string(error_->GetBubbleViewCancelButtonLabel());
scoped_ptr<views::LabelButton> cancel_button;
« no previous file with comments | « chrome/browser/ui/views/elevation_icon_setter.cc ('k') | chrome/browser/ui/views/infobars/confirm_infobar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698