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

Unified Diff: chrome/browser/ui/views/content_setting_bubble_contents.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/content_setting_bubble_contents.cc
diff --git a/chrome/browser/ui/views/content_setting_bubble_contents.cc b/chrome/browser/ui/views/content_setting_bubble_contents.cc
index 8965da5361df7dd21261295c24ebe62544888c8a..f68ceac8ca26794529809ecba93c23b72b46ff71 100644
--- a/chrome/browser/ui/views/content_setting_bubble_contents.cc
+++ b/chrome/browser/ui/views/content_setting_bubble_contents.cc
@@ -503,7 +503,7 @@ void ContentSettingBubbleContents::UpdateMenuButtonSizes(
for (MediaMenuPartsMap::const_iterator i = media_menus_.begin();
i != media_menus_.end(); ++i) {
- i->first->set_min_size(gfx::Size(menu_width, 0));
- i->first->set_max_size(gfx::Size(menu_width, 0));
+ i->first->SetMinSize(gfx::Size(menu_width, 0));
+ i->first->SetMaxSize(gfx::Size(menu_width, 0));
}
}
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/fullscreen_exit_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698