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; |
} |