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

Unified Diff: extensions/common/user_script.cc

Issue 1226673003: Move MatchPattern to its own header and the base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « extensions/common/url_pattern.cc ('k') | extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/user_script.cc
diff --git a/extensions/common/user_script.cc b/extensions/common/user_script.cc
index 5be488067e7fece85c8ee7ffbe110d2f7bedf940..b3d82bba795a04871921edebe6adc55552311be2 100644
--- a/extensions/common/user_script.cc
+++ b/extensions/common/user_script.cc
@@ -7,6 +7,7 @@
#include "base/atomic_sequence_num.h"
#include "base/command_line.h"
#include "base/pickle.h"
+#include "base/strings/pattern.h"
#include "base/strings/string_util.h"
#include "extensions/common/switches.h"
@@ -20,7 +21,7 @@ bool UrlMatchesGlobs(const std::vector<std::string>* globs,
const GURL& url) {
for (std::vector<std::string>::const_iterator glob = globs->begin();
glob != globs->end(); ++glob) {
- if (MatchPattern(url.spec(), *glob))
+ if (base::MatchPattern(url.spec(), *glob))
return true;
}
« no previous file with comments | « extensions/common/url_pattern.cc ('k') | extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698