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

Unified Diff: url/gurl.cc

Issue 301353003: Using pre-existing constants instead of hard-coding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing nit 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
« no previous file with comments | « url/gurl.h ('k') | url/url_constants.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/gurl.cc
diff --git a/url/gurl.cc b/url/gurl.cc
index c79cdba1aa21902651a6868579a4be7e0f326753..947403e19705598e9ef32cc67ea609ab21584c28 100644
--- a/url/gurl.cc
+++ b/url/gurl.cc
@@ -370,11 +370,11 @@ bool GURL::SchemeIs(const char* lower_ascii_scheme) const {
}
bool GURL::SchemeIsHTTPOrHTTPS() const {
- return SchemeIs("http") || SchemeIs("https");
+ return SchemeIs(url::kHttpScheme) || SchemeIs(url::kHttpsScheme);
}
bool GURL::SchemeIsWSOrWSS() const {
- return SchemeIs("ws") || SchemeIs("wss");
+ return SchemeIs(url::kWsScheme) || SchemeIs(url::kWssScheme);
}
int GURL::IntPort() const {
« no previous file with comments | « url/gurl.h ('k') | url/url_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698