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

Unified Diff: chrome/common/content_settings_pattern_parser.cc

Issue 273193004: Move some content url constants to /url. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing files. Created 6 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/content_settings_pattern_parser.cc
diff --git a/chrome/common/content_settings_pattern_parser.cc b/chrome/common/content_settings_pattern_parser.cc
index c8c22ed9a3fc18bb1950e51a0b503269426c7f97..2ec7ddff0a56a6c528a0f99595cad5dc8d519b9c 100644
--- a/chrome/common/content_settings_pattern_parser.cc
+++ b/chrome/common/content_settings_pattern_parser.cc
@@ -173,7 +173,7 @@ void PatternParser::Parse(const std::string& pattern_spec,
}
} else {
if (scheme != std::string(extensions::kExtensionScheme) &&
- scheme != std::string(content::kFileScheme))
+ scheme != std::string(url::kFileScheme))
builder->WithPortWildcard();
}
@@ -202,7 +202,7 @@ std::string PatternParser::ToString(
if (!parts.is_scheme_wildcard)
str += parts.scheme + content::kStandardSchemeSeparator;
- if (parts.scheme == content::kFileScheme) {
+ if (parts.scheme == url::kFileScheme) {
if (parts.is_path_wildcard)
return str + kUrlPathSeparator + kPathWildcard;
else
« no previous file with comments | « chrome/common/content_settings_pattern.cc ('k') | chrome/common/extensions/api/file_browser_handlers/file_browser_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698