summaryrefslogtreecommitdiffstats
path: root/net/http/http_server_properties_impl.cc
diff options
context:
space:
mode:
authorbnc <bnc@chromium.org>2015-01-30 14:44:50 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-30 22:45:38 +0000
commitc45e09b004eb4fe3f317052c072f6173c1e6986c (patch)
treec09047b0a8742cd8c41ff8639b4c67d692005506 /net/http/http_server_properties_impl.cc
parenta01c664cd6802d64d212f68d1c9392a4340ca835 (diff)
downloadchromium_src-c45e09b004eb4fe3f317052c072f6173c1e6986c.zip
chromium_src-c45e09b004eb4fe3f317052c072f6173c1e6986c.tar.gz
chromium_src-c45e09b004eb4fe3f317052c072f6173c1e6986c.tar.bz2
Change GetCanonicalSuffix() interface.
This CL changes the argument of GetCanonicalSuffix() from HostPortPair to std::string (both const&) to better document the fact that GetCanonicalSuffix only operates on that field. BUG=392575 Review URL: https://codereview.chromium.org/868753007 Cr-Commit-Position: refs/heads/master@{#314014}
Diffstat (limited to 'net/http/http_server_properties_impl.cc')
-rw-r--r--net/http/http_server_properties_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/http/http_server_properties_impl.cc b/net/http/http_server_properties_impl.cc
index 8dd6256..08a77e4 100644
--- a/net/http/http_server_properties_impl.cc
+++ b/net/http/http_server_properties_impl.cc
@@ -234,12 +234,12 @@ bool HttpServerPropertiesImpl::HasAlternateProtocol(
}
std::string HttpServerPropertiesImpl::GetCanonicalSuffix(
- const HostPortPair& server) {
+ const std::string& host) {
// If this host ends with a canonical suffix, then return the canonical
// suffix.
for (size_t i = 0; i < canonical_suffixes_.size(); ++i) {
std::string canonical_suffix = canonical_suffixes_[i];
- if (EndsWith(server.host(), canonical_suffixes_[i], false)) {
+ if (EndsWith(host, canonical_suffixes_[i], false)) {
return canonical_suffix;
}
}