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

Unified Diff: url/url_util.cc

Issue 335353002: Replace some hard coded schemes with the constants in /url/url_constants.h. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typos. Created 6 years, 6 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 | « url/url_constants.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/url_util.cc
diff --git a/url/url_util.cc b/url/url_util.cc
index 7cb2de24a86598a76a438f69dd0c34142c626a5a..9f2ad2c69094a90e52b6a70fe2e5ed33af280a05 100644
--- a/url/url_util.cc
+++ b/url/url_util.cc
@@ -35,13 +35,13 @@ inline bool DoLowerCaseEqualsASCII(Iter a_begin, Iter a_end, const char* b) {
const int kNumStandardURLSchemes = 8;
const char* kStandardURLSchemes[kNumStandardURLSchemes] = {
- "http",
- "https",
+ kHttpScheme,
+ kHttpsScheme,
kFileScheme, // Yes, file urls can have a hostname!
- "ftp",
- "gopher",
- "ws", // WebSocket.
- "wss", // WebSocket secure.
+ kFtpScheme,
+ kGopherScheme,
+ kWsScheme, // WebSocket.
+ kWssScheme, // WebSocket secure.
kFileSystemScheme,
};
« no previous file with comments | « url/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698