Index: chrome/common/extensions/extension_set.cc |
diff --git a/chrome/common/extensions/extension_set.cc b/chrome/common/extensions/extension_set.cc |
index 0825089010e099d0444cec65e0c7dcd4d2dab8cf..df6efc6ba823f19b4b3ae788399aa35ed8339574 100644 |
--- a/chrome/common/extensions/extension_set.cc |
+++ b/chrome/common/extensions/extension_set.cc |
@@ -79,3 +79,15 @@ bool ExtensionSet::ExtensionBindingsAllowed(const GURL& url) const { |
return false; |
} |
+ |
+void ExtensionSet::GetExtensionsPathAndDefaultLocale( |
+ std::map<std::string, ExtensionPathAndDefaultLocale>* info) const { |
+ info->clear(); |
+ ExtensionMap::const_iterator i = extensions_.begin(); |
+ for (; i != extensions_.end(); ++i) { |
+ std::string info_key(i->first); |
+ ExtensionPathAndDefaultLocale info_value(i->second->path(), |
+ i->second->default_locale()); |
+ info->insert(std::make_pair(info_key, info_value)); |
+ } |
+} |