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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.cc

Issue 7134024: Disable scalling of InfoBar icon (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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/infobars/infobar_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_view.cc b/chrome/browser/ui/views/infobars/infobar_view.cc
index 4b742f90fc16153add6eea68ead21a548b53c55f..d1becdf1a50322594e1706c9395c544e9bea8663 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_view.cc
@@ -193,7 +193,7 @@ void InfoBarView::Layout() {
int start_x = kHorizontalPadding;
if (icon_ != NULL) {
- gfx::Size icon_size = icon_->GetPreferredSize();
+ gfx::Size icon_size(GetInfoBarIconSizePixels(), GetInfoBarIconSizePixels());
icon_->SetBounds(start_x, OffsetY(icon_size), icon_size.width(),
icon_size.height());
}
« chrome/browser/tab_contents/infobar.cc ('K') | « chrome/browser/ui/gtk/infobars/infobar_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698