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

Unified Diff: chrome/browser/ui/views/sync/one_click_signin_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
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc ('k') | ui/views/button_drag_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc
diff --git a/chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc b/chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc
index d6127ac2fd38117e3c48395f72eb5d9eb090fe82..622ba314964de39d990df5c331a6fb838d2058b4 100644
--- a/chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc
+++ b/chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc
@@ -284,12 +284,12 @@ void OneClickSigninBubbleView::GetButtons(views::LabelButton** ok_button,
// The default size of the buttons is too large. To allow them to be smaller
// ignore the minimum default size.,
- (*ok_button)->set_min_size(gfx::Size());
+ (*ok_button)->SetMinSize(gfx::Size());
if (is_sync_dialog_) {
*undo_button = new views::LabelButton(this, base::string16());
(*undo_button)->SetStyle(views::Button::STYLE_BUTTON);
- (*undo_button)->set_min_size(gfx::Size());
+ (*undo_button)->SetMinSize(gfx::Size());
base::string16 undo_label =
l10n_util::GetStringUTF16(IDS_ONE_CLICK_SIGNIN_DIALOG_UNDO_BUTTON);
« no previous file with comments | « chrome/browser/ui/views/profiles/profile_reset_bubble_view.cc ('k') | ui/views/button_drag_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698