diff options
Diffstat (limited to 'chrome/common/extensions/extension.cc')
-rw-r--r-- | chrome/common/extensions/extension.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc index ebb8d13..08b77bb 100644 --- a/chrome/common/extensions/extension.cc +++ b/chrome/common/extensions/extension.cc @@ -1003,3 +1003,11 @@ void Extension::SetBackgroundPageReady() { Source<Extension>(this), NotificationService::NoDetails()); } + +FilePath Extension::GetIconPath(Icons icon) { + std::map<int, std::string>::const_iterator iter = + icons_.find(Extension::EXTENSION_ICON_LARGE); + if (iter == icons_.end()) + return FilePath(); + return GetResourcePath(iter->second); +} |