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

Unified Diff: chrome/browser/icon_loader_linux.cc

Issue 6995068: Mac: Fix icons in download dom UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linux build 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
« no previous file with comments | « chrome/browser/icon_loader.h ('k') | chrome/browser/icon_loader_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/icon_loader_linux.cc
diff --git a/chrome/browser/icon_loader_linux.cc b/chrome/browser/icon_loader_linux.cc
index ce8eade5e7573ef7c12a7288381fc330a595b0bc..c5b04237187935ba498e73c9eddc80ad1baf87b9 100644
--- a/chrome/browser/icon_loader_linux.cc
+++ b/chrome/browser/icon_loader_linux.cc
@@ -16,12 +16,20 @@
#include "base/string_util.h"
static int SizeToInt(IconLoader::IconSize size) {
- int pixels = 48;
- if (size == IconLoader::NORMAL)
- pixels = 32;
- else if (size == IconLoader::SMALL)
- pixels = 16;
-
+ int pixels = 0;
+ switch (size) {
+ case IconLoader::SMALL:
+ pixels = 16;
+ break;
+ case IconLoader::NORMAL:
+ pixels = 32;
+ break;
+ case IconLoader::LARGE:
+ pixels = 48;
+ break;
+ default:
+ NOTREACHED();
+ }
return pixels;
}
« no previous file with comments | « chrome/browser/icon_loader.h ('k') | chrome/browser/icon_loader_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698