Index: chrome/common/extensions/extension.cc |
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc |
index 7799938e2986aa0280ca26cc980c4c51c315b528..cae1482d1313474d1f0e09523a962c0e6fcc4c10 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; |