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

Unified Diff: chrome/browser/ui/views/website_settings/permission_selector_row.cc

Issue 2647173002: Do not size PermissionSelectorRow to preferred size (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/website_settings/permission_selector_row.cc
diff --git a/chrome/browser/ui/views/website_settings/permission_selector_row.cc b/chrome/browser/ui/views/website_settings/permission_selector_row.cc
index 00f49fbcfed764a6154e1d7264f800c8b335738b..6ba6b2270d3ba19f4234df92eedff4dec45a2154 100644
--- a/chrome/browser/ui/views/website_settings/permission_selector_row.cc
+++ b/chrome/browser/ui/views/website_settings/permission_selector_row.cc
@@ -293,12 +293,7 @@ void PermissionSelectorRow::AddObserver(
}
void PermissionSelectorRow::ChildPreferredSizeChanged(View* child) {
- SizeToPreferredSize();
- // FIXME: The parent is only a plain |View| that is used as a
- // container/box/panel. The SizeToPreferredSize method of the parent is
- // called here directly in order not to implement a custom |View| class with
- // its own implementation of the ChildPreferredSizeChanged method.
- parent()->SizeToPreferredSize();
+ Layout();
}
PermissionSelectorRow::~PermissionSelectorRow() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698