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

Unified Diff: chrome/browser/views/extensions/extension_install_prompt.cc

Issue 344014: Standardize on the plugin icon (puzzle piece) as the default icon for... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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/resources/extensions_ui.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/extensions/extension_install_prompt.cc
===================================================================
--- chrome/browser/views/extensions/extension_install_prompt.cc (revision 30284)
+++ chrome/browser/views/extensions/extension_install_prompt.cc (working copy)
@@ -36,8 +36,12 @@
InstallDialogContent(ExtensionInstallUI::Delegate* delegate,
Extension* extension, SkBitmap* icon, const std::wstring& warning_text)
: delegate_(delegate), icon_(NULL) {
+ // Scale down to 85x85, but allow smaller icons (don't scale up).
rafaelw 2009/10/28 19:21:32 Can you create bugs to match this behavior on linu
+ gfx::Size size(icon->width(), icon->height());
+ if (size.width() > kIconSize || size.height() > kIconSize)
+ size = gfx::Size(kIconSize, kIconSize);
icon_ = new views::ImageView();
- icon_->SetImageSize(gfx::Size(kIconSize, kIconSize));
+ icon_->SetImageSize(size);
icon_->SetImage(*icon);
AddChildView(icon_);
« no previous file with comments | « chrome/browser/resources/extensions_ui.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698