| Index: chrome/common/extensions/extension_set.cc
|
| diff --git a/chrome/common/extensions/extension_set.cc b/chrome/common/extensions/extension_set.cc
|
| index 26ac47c07b783a8f43cffe82c52d9d5900f7109e..01f35fd652bf52838c3aa3f2d6e40b879b2e9eda 100644
|
| --- a/chrome/common/extensions/extension_set.cc
|
| +++ b/chrome/common/extensions/extension_set.cc
|
| @@ -63,8 +63,8 @@ bool ExtensionSet::InsertAll(const ExtensionSet& extensions) {
|
| return size() != before;
|
| }
|
|
|
| -void ExtensionSet::Remove(const std::string& id) {
|
| - extensions_.erase(id);
|
| +bool ExtensionSet::Remove(const std::string& id) {
|
| + return extensions_.erase(id) > 0;
|
| }
|
|
|
| void ExtensionSet::Clear() {
|
| @@ -137,6 +137,15 @@ const Extension* ExtensionSet::GetByID(const std::string& id) const {
|
| return NULL;
|
| }
|
|
|
| +std::set<std::string> ExtensionSet::GetIDs() const {
|
| + std::set<std::string> ids;
|
| + for (ExtensionMap::const_iterator it = extensions_.begin();
|
| + it != extensions_.end(); ++it) {
|
| + ids.insert(it->first);
|
| + }
|
| + return ids;
|
| +}
|
| +
|
| bool ExtensionSet::ExtensionBindingsAllowed(
|
| const ExtensionURLInfo& info) const {
|
| if (info.origin().isUnique() || IsSandboxedPage(info))
|
|
|