summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/url_pattern.cc
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 04:30:12 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-15 04:30:12 +0000
commit919ddc8c4928d69c3db02c68c0dbf573ebc54899 (patch)
tree74d8d509008427576fddfcf01282b897df23d261 /chrome/common/extensions/url_pattern.cc
parent6f317586c5b00ab2196d9f3dbff571bad34b8352 (diff)
downloadchromium_src-919ddc8c4928d69c3db02c68c0dbf573ebc54899.zip
chromium_src-919ddc8c4928d69c3db02c68c0dbf573ebc54899.tar.gz
chromium_src-919ddc8c4928d69c3db02c68c0dbf573ebc54899.tar.bz2
Various minor fixes:
* --load-extension no longer requires --enable-extensions * No longer support chrome:// URLs for user scripts * Remove old unused Greasemonkey test * Enable Greasemonkey API emulation in linux/mac BUG=16720,16007,4476 TEST=Added several unit tests Original review: http://codereview.chromium.org/149619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/url_pattern.cc')
-rw-r--r--chrome/common/extensions/url_pattern.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/extensions/url_pattern.cc b/chrome/common/extensions/url_pattern.cc
index 2fc6f56..7a4f853 100644
--- a/chrome/common/extensions/url_pattern.cc
+++ b/chrome/common/extensions/url_pattern.cc
@@ -15,12 +15,12 @@ static const char* kValidSchemes[] = {
chrome::kHttpsScheme,
chrome::kFileScheme,
chrome::kFtpScheme,
- chrome::kChromeUIScheme,
};
static const char kPathSeparator[] = "/";
-static bool IsValidScheme(const std::string& scheme) {
+// static
+bool URLPattern::IsValidScheme(const std::string& scheme) {
for (size_t i = 0; i < arraysize(kValidSchemes); ++i) {
if (scheme == kValidSchemes[i])
return true;