Index: chrome/browser/icon_loader_win.cc |
diff --git a/chrome/browser/icon_loader_win.cc b/chrome/browser/icon_loader_win.cc |
index 7aa1455f8539ad7e654e07399ac4ca072757292d..e686e730b2d696cb6f5e6cd31f048a3a26e25a34 100644 |
--- a/chrome/browser/icon_loader_win.cc |
+++ b/chrome/browser/icon_loader_win.cc |
@@ -15,6 +15,16 @@ |
#include "ui/gfx/image/image_skia.h" |
#include "ui/gfx/size.h" |
+// static |
+IconGroupID IconLoader::ReadGroupIDFromFilepath( |
+ const base::FilePath& filepath) { |
+ base::FilePath::StringType extension = filepath.Extension(); |
+ if (extension != L".exe" && extension != L".dll" && extension != L".ico") |
+ return extension; |
+ else |
+ return filepath.value(); |
+} |
+ |
void IconLoader::ReadIcon() { |
int size = 0; |
switch (icon_size_) { |