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

Unified Diff: chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc

Issue 371633002: LabelButton: cache the last computed preferred size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 5 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/profiles/profile_reset_bubble_view.cc
diff --git a/chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc b/chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc
index 3386efa3110bcd5802408507a714ac6cf6ab1c94..df42b524cfc6706e31c2f10ae2e25acd8fb7b103 100644
--- a/chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc
+++ b/chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc
@@ -243,7 +243,7 @@ void ProfileResetBubbleView::SetupLayoutManager(bool report_checked) {
// For the Resetting... text to fit.
gfx::Size reset_button_size = controls_.reset_button->GetPreferredSize();
reset_button_size.set_width(100);
- controls_.reset_button->set_min_size(reset_button_size);
+ controls_.reset_button->SetMinSize(reset_button_size);
// No thanks button.
controls_.no_thanks_button = new views::LabelButton(
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_chooser_view.cc ('k') | chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698