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

Unified Diff: url/gurl.h

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 | « no previous file | url/gurl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/gurl.h
diff --git a/url/gurl.h b/url/gurl.h
index b8632b45e91007c52601bd14be913bd2cb876fcd..e830b1a3ec7c74f46fbe5d370944720aca89c380 100644
--- a/url/gurl.h
+++ b/url/gurl.h
@@ -12,6 +12,7 @@
#include "base/strings/string16.h"
#include "url/url_canon.h"
#include "url/url_canon_stdstring.h"
+#include "url/url_constants.h"
#include "url/url_export.h"
#include "url/url_parse.h"
@@ -231,7 +232,7 @@ class URL_EXPORT GURL {
// If the scheme indicates a secure connection
bool SchemeIsSecure() const {
- return SchemeIs("https") || SchemeIs("wss") ||
+ return SchemeIs(url::kHttpsScheme) || SchemeIs(url::kWssScheme) ||
(SchemeIsFileSystem() && inner_url() && inner_url()->SchemeIsSecure());
}
« no previous file with comments | « no previous file | url/gurl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698