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

Unified Diff: net/quic/crypto/quic_crypto_client_config.cc

Issue 685463002: Fix typo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | « net/quic/crypto/quic_crypto_client_config.h ('k') | url/url_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/quic_crypto_client_config.cc
diff --git a/net/quic/crypto/quic_crypto_client_config.cc b/net/quic/crypto/quic_crypto_client_config.cc
index 1f668af24cf8b2dabceec8bdb1c61149a5f5ae01..8b6dfb79d0d69b998898d58579a5576b029e824c 100644
--- a/net/quic/crypto/quic_crypto_client_config.cc
+++ b/net/quic/crypto/quic_crypto_client_config.cc
@@ -810,7 +810,7 @@ void QuicCryptoClientConfig::InitializeFrom(
}
void QuicCryptoClientConfig::AddCanonicalSuffix(const string& suffix) {
- canoncial_suffixes_.push_back(suffix);
+ canonical_suffixes_.push_back(suffix);
}
void QuicCryptoClientConfig::PreferAesGcm() {
@@ -834,15 +834,15 @@ void QuicCryptoClientConfig::PopulateFromCanonicalConfig(
CachedState* server_state) {
DCHECK(server_state->IsEmpty());
size_t i = 0;
- for (; i < canoncial_suffixes_.size(); ++i) {
- if (EndsWith(server_id.host(), canoncial_suffixes_[i], false)) {
+ for (; i < canonical_suffixes_.size(); ++i) {
+ if (EndsWith(server_id.host(), canonical_suffixes_[i], false)) {
break;
}
}
- if (i == canoncial_suffixes_.size())
+ if (i == canonical_suffixes_.size())
return;
- QuicServerId suffix_server_id(canoncial_suffixes_[i], server_id.port(),
+ QuicServerId suffix_server_id(canonical_suffixes_[i], server_id.port(),
server_id.is_https(),
server_id.privacy_mode());
if (!ContainsKey(canonical_server_map_, suffix_server_id)) {
« no previous file with comments | « net/quic/crypto/quic_crypto_client_config.h ('k') | url/url_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698