summaryrefslogtreecommitdiffstats
path: root/url/url_util.cc
diff options
context:
space:
mode:
authorsungmann.cho@navercorp.com <sungmann.cho@navercorp.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-18 07:57:49 +0000
committersungmann.cho@navercorp.com <sungmann.cho@navercorp.com@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-18 07:57:49 +0000
commit08dc705a466d0f2f2cffdf6b36fe8bc651b780f5 (patch)
tree9953afe3dcf82822a990d1c9817dc9d11f52cf18 /url/url_util.cc
parentafbed27bab1a43e40129215aced8983fb5272707 (diff)
downloadchromium_src-08dc705a466d0f2f2cffdf6b36fe8bc651b780f5.zip
chromium_src-08dc705a466d0f2f2cffdf6b36fe8bc651b780f5.tar.gz
chromium_src-08dc705a466d0f2f2cffdf6b36fe8bc651b780f5.tar.bz2
Replace some hard coded schemes with the constants in /url/url_constants.h.
BUG=none TEST=compile Review URL: https://codereview.chromium.org/335353002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@277979 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'url/url_util.cc')
-rw-r--r--url/url_util.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/url/url_util.cc b/url/url_util.cc
index 7cb2de2..9f2ad2c 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,
};