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..a97782feed714368e0a6ead5dbcb868eba5166f6 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 (icon_size_) { |
+ case IconLoader::SMALL: |
+ pixels = 16; |
+ break; |
+ case IconLoader::NORMAL: |
+ pixels = 32; |
+ break; |
+ case IconLoader::LARGE: |
+ pixels = 48; |
+ break; |
+ default: |
+ NOTREACHED(); |
+ } |
return pixels; |
} |