| Index: chrome/common/extensions/extension_set.cc
|
| ===================================================================
|
| --- chrome/common/extensions/extension_set.cc (revision 113231)
|
| +++ chrome/common/extensions/extension_set.cc (working copy)
|
| @@ -29,6 +29,10 @@
|
| return extensions_.size();
|
| }
|
|
|
| +bool ExtensionSet::is_empty() const {
|
| + return extensions_.empty();
|
| +}
|
| +
|
| bool ExtensionSet::Contains(const std::string& extension_id) const {
|
| return extensions_.find(extension_id) != extensions_.end();
|
| }
|
| @@ -41,7 +45,11 @@
|
| extensions_.erase(id);
|
| }
|
|
|
| -std::string ExtensionSet::GetIdByURL(const ExtensionURLInfo& info) const {
|
| +void ExtensionSet::Clear() {
|
| + extensions_.clear();
|
| +}
|
| +
|
| +std::string ExtensionSet::GetIDByURL(const ExtensionURLInfo& info) const {
|
| DCHECK(!info.origin().isNull());
|
|
|
| if (info.url().SchemeIs(chrome::kExtensionScheme))
|
|
|