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

Unified Diff: extensions/common/url_pattern.cc

Issue 254763005: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some missing files. Created 6 years, 8 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: extensions/common/url_pattern.cc
diff --git a/extensions/common/url_pattern.cc b/extensions/common/url_pattern.cc
index 477d3ddf080f65ea762dad056e27b11622d213cc..6db7d6404d6442422746c3fd9386f1ae44b7954e 100644
--- a/extensions/common/url_pattern.cc
+++ b/extensions/common/url_pattern.cc
@@ -11,6 +11,7 @@
#include "content/public/common/url_constants.h"
#include "extensions/common/constants.h"
#include "url/gurl.h"
+#include "url/url_constants.h"
#include "url/url_util.h"
const char URLPattern::kAllUrlsPattern[] = "<all_urls>";
@@ -20,13 +21,13 @@ namespace {
// TODO(aa): What about more obscure schemes like data: and javascript: ?
// Note: keep this array in sync with kValidSchemeMasks.
const char* kValidSchemes[] = {
- content::kHttpScheme,
- content::kHttpsScheme,
- content::kFileScheme,
- content::kFtpScheme,
- content::kChromeUIScheme,
- extensions::kExtensionScheme,
- content::kFileSystemScheme,
+ url::kHttpScheme,
+ url::kHttpsScheme,
+ content::kFileScheme,
+ content::kFtpScheme,
+ content::kChromeUIScheme,
+ extensions::kExtensionScheme,
+ content::kFileSystemScheme,
};
const int kValidSchemeMasks[] = {
@@ -365,7 +366,7 @@ bool URLPattern::MatchesScheme(const std::string& test) const {
}
bool URLPattern::MatchesHost(const std::string& host) const {
- std::string test(content::kHttpScheme);
+ std::string test(url::kHttpScheme);
test += content::kStandardSchemeSeparator;
test += host;
test += "/";
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | url/url_constants.h » ('j') | url/url_srcs.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698