| Index: extensions/common/extension_set.cc
|
| diff --git a/extensions/common/extension_set.cc b/extensions/common/extension_set.cc
|
| index c4c15d4e1f2bc3b8f291f590f7be0b109a21583e..fe3e4dff227b40fe5f682421bb8cddcc37348e98 100644
|
| --- a/extensions/common/extension_set.cc
|
| +++ b/extensions/common/extension_set.cc
|
| @@ -9,6 +9,7 @@
|
| #include "base/stl_util.h"
|
| #include "extensions/common/constants.h"
|
| #include "extensions/common/extension.h"
|
| +#include "extensions/common/host_id.h"
|
| #include "extensions/common/manifest_handlers/sandboxed_page_info.h"
|
|
|
| namespace extensions {
|
| @@ -138,6 +139,14 @@ ExtensionIdSet ExtensionSet::GetIDs() const {
|
| return ids;
|
| }
|
|
|
| +std::set<HostID> ExtensionSet::GetHostIDs() const {
|
| + std::set<HostID> ids;
|
| + for (ExtensionMap::const_iterator it = extensions_.begin();
|
| + it != extensions_.end(); ++it) {
|
| + ids.insert(HostID(HostID::EXTENSIONS, it->first));
|
| + }
|
| + return ids;
|
| +}
|
| bool ExtensionSet::ExtensionBindingsAllowed(const GURL& url) const {
|
| if (url.SchemeIs(kExtensionScheme))
|
| return true;
|
|
|