Index: chrome/browser/icon_loader_mac.mm |
diff --git a/chrome/browser/icon_loader_mac.mm b/chrome/browser/icon_loader_mac.mm |
index d01089f61354202a71814a68440d7a96f57c4e66..015dc6bafa783a67921d27b196a2f3026e641e35 100644 |
--- a/chrome/browser/icon_loader_mac.mm |
+++ b/chrome/browser/icon_loader_mac.mm |
@@ -7,12 +7,19 @@ |
#import <AppKit/AppKit.h> |
#include "base/bind.h" |
+#include "base/files/file_path.h" |
#include "base/message_loop.h" |
#include "base/threading/thread.h" |
#include "base/strings/sys_string_conversions.h" |
#include "ui/gfx/image/image_skia.h" |
#include "ui/gfx/image/image_skia_util_mac.h" |
+// static |
+IconGroupID IconLoader::ReadGroupIDFromFilepath( |
+ const base::FilePath& filepath) { |
+ return filepath.Extension(); |
+} |
+ |
void IconLoader::ReadIcon() { |
NSString* group = base::SysUTF8ToNSString(group_); |
NSWorkspace* workspace = [NSWorkspace sharedWorkspace]; |