const Extension* extension,
int size,
ExtensionIconSet::MatchType match_type) {
- std::string path = GetIcons(extension).Get(size, match_type);
+ const std::string& path = GetIcons(extension).Get(size, match_type);
return path.empty() ? ExtensionResource() : extension->GetResource(path);
}
GURL IconsInfo::GetIconURL(const Extension* extension,
int size,
ExtensionIconSet::MatchType match_type) {
- std::string path = GetIcons(extension).Get(size, match_type);
+ const std::string& path = GetIcons(extension).Get(size, match_type);
return path.empty() ? GURL() : extension->GetResourceURL(path);
}