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

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

Issue 2893573004: Simplify some code in c/b/u/views. (Closed)
Patch Set: Created 3 years, 7 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/validation_message_bubble_view.h ('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/validation_message_bubble_view.cc
diff --git a/chrome/browser/ui/views/validation_message_bubble_view.cc b/chrome/browser/ui/views/validation_message_bubble_view.cc
index 2c57d120188a01cbe139514263c98687d8333cb7..788da2db1ff3ee47b95808bc6ada0e58864ec8c9 100644
--- a/chrome/browser/ui/views/validation_message_bubble_view.cc
+++ b/chrome/browser/ui/views/validation_message_bubble_view.cc
@@ -75,7 +75,7 @@ ValidationMessageBubbleView::ValidationMessageBubbleView(
content_bottom += kTextVerticalMargin + sub_label->height();
}
- size_ = gfx::Size(text_start_x + label_width, content_bottom);
+ set_preferred_size(gfx::Size(text_start_x + label_width, content_bottom));
views::BubbleDialogDelegateView::CreateBubble(this)->ShowInactive();
}
@@ -92,10 +92,6 @@ gfx::Rect ValidationMessageBubbleView::RootViewToScreenRect(
render_widget_host_view->GetViewBounds().origin().OffsetFromOrigin();
}
-gfx::Size ValidationMessageBubbleView::GetPreferredSize() const {
- return size_;
-}
-
int ValidationMessageBubbleView::GetDialogButtons() const {
return ui::DIALOG_BUTTON_NONE;
}
« no previous file with comments | « chrome/browser/ui/views/validation_message_bubble_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698