Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4655)

Unified Diff: chrome/common/extensions/extension.cc

Issue 10332235: Make the page action space show extensions with active content scripts or (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
« chrome/browser/extensions/script_badge_controller.cc ('K') | « chrome/common/extensions/extension.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698