Index: chrome/common/extensions/extension_set.cc |
diff --git a/chrome/common/extensions/extension_set.cc b/chrome/common/extensions/extension_set.cc |
index 0231115bd661279292edcfbe7c016c6d7514a359..c99220b407214057e8ff24164a8cd11dcf6c51f7 100644 |
--- a/chrome/common/extensions/extension_set.cc |
+++ b/chrome/common/extensions/extension_set.cc |
@@ -29,6 +29,10 @@ size_t ExtensionSet::size() const { |
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 @@ void ExtensionSet::Remove(const std::string& id) { |
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)) |