summaryrefslogtreecommitdiffstats
path: root/url
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-07-06 15:09:00 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-06 22:10:42 +0000
commitd97eede0d9eb25ebffc918c8ebfcf9a9d9703a88 (patch)
treee83dc87df21704e72e63423961e82b02244ac015 /url
parent7d47f7a394e09e1a6e3e546932051649f185d47e (diff)
downloadchromium_src-d97eede0d9eb25ebffc918c8ebfcf9a9d9703a88.zip
chromium_src-d97eede0d9eb25ebffc918c8ebfcf9a9d9703a88.tar.gz
chromium_src-d97eede0d9eb25ebffc918c8ebfcf9a9d9703a88.tar.bz2
Move MatchPattern to its own header and the base namespace.
BUG= Review URL: https://codereview.chromium.org/1226673003 Cr-Commit-Position: refs/heads/master@{#337488}
Diffstat (limited to 'url')
-rw-r--r--url/origin.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/url/origin.cc b/url/origin.cc
index 8aaa173..d800310 100644
--- a/url/origin.cc
+++ b/url/origin.cc
@@ -4,6 +4,7 @@
#include "url/origin.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
namespace url {
@@ -11,7 +12,7 @@ namespace url {
Origin::Origin() : string_("null") {}
Origin::Origin(const std::string& origin) : string_(origin) {
- DCHECK(origin == "null" || MatchPattern(origin, "?*://?*"));
+ DCHECK(origin == "null" || base::MatchPattern(origin, "?*://?*"));
DCHECK_GT(origin.size(), 0u);
DCHECK(origin == "file://" || origin[origin.size() - 1] != '/');
}