Index: chrome/common/extensions/extension.cc |
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc |
index 91c21df0cb0d7aedc230c000fe0a2926b124d519..0c88438cad85ce11ff16ba7e9bbcbae94a842b18 100644 |
--- a/chrome/common/extensions/extension.cc |
+++ b/chrome/common/extensions/extension.cc |
@@ -3492,6 +3492,15 @@ bool Extension::ShouldDisplayInExtensionSettings() const { |
return true; |
} |
+bool Extension::HasContentScriptAtURL(const GURL& url) const { |
+ for (UserScriptList::const_iterator it = content_scripts_.begin(); |
+ it != content_scripts_.end(); ++it) { |
+ if (it->MatchesURL(url)) |
+ return true; |
+ } |
+ return false; |
+} |
+ |
bool Extension::CheckPlatformAppFeatures(std::string* utf8_error) { |
if (!is_platform_app()) |
return true; |