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

Unified Diff: net/cookies/cookie_util.cc

Issue 859663003: GetEffectiveDomain should handle ws scheme as same as http scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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: net/cookies/cookie_util.cc
diff --git a/net/cookies/cookie_util.cc b/net/cookies/cookie_util.cc
index 958801839f2594d0fce13c6b855f45291bd3cc4b..bcf80ca50c2e01aa7f929fd4968c56e0ccf5a5d8 100644
--- a/net/cookies/cookie_util.cc
+++ b/net/cookies/cookie_util.cc
@@ -24,7 +24,8 @@ bool DomainIsHostOnly(const std::string& domain_string) {
std::string GetEffectiveDomain(const std::string& scheme,
const std::string& host) {
- if (scheme == "http" || scheme == "https") {
+ if (scheme == "http" || scheme == "https" || scheme == "ws" ||
+ scheme == "wss") {
return registry_controlled_domains::GetDomainAndRegistry(
host,
registry_controlled_domains::INCLUDE_PRIVATE_REGISTRIES);
@@ -264,6 +265,5 @@ std::string SerializeRequestCookieLine(
return buffer;
}
-} // namespace cookie_utils
+} // namespace cookie_util
} // namespace net
-

Powered by Google App Engine
This is Rietveld 408576698