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

Unified Diff: components/gcm_driver/crypto/encryption_header_parsers.cc

Issue 1811163002: Share link header parsing code between blink and content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base-optional
Patch Set: rebase Created 4 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 | « components/components_tests.gyp ('k') | components/link_header_util/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/gcm_driver/crypto/encryption_header_parsers.cc
diff --git a/components/gcm_driver/crypto/encryption_header_parsers.cc b/components/gcm_driver/crypto/encryption_header_parsers.cc
index ccfae9fe57dfa18bc599bd435692a97dd745c57a..1932527b9fefac8c389f27f7aedd87e2d8de97e6 100644
--- a/components/gcm_driver/crypto/encryption_header_parsers.cc
+++ b/components/gcm_driver/crypto/encryption_header_parsers.cc
@@ -75,7 +75,8 @@ bool ParseEncryptionHeaderValuesImpl(std::string::const_iterator input_begin,
EncryptionHeaderValues* values) {
net::HttpUtil::NameValuePairsIterator name_value_pairs(
input_begin, input_end, ';',
- net::HttpUtil::NameValuePairsIterator::VALUES_NOT_OPTIONAL);
+ net::HttpUtil::NameValuePairsIterator::Values::REQUIRED,
+ net::HttpUtil::NameValuePairsIterator::Quotes::NOT_STRICT);
while (name_value_pairs.GetNext()) {
const base::StringPiece name(name_value_pairs.name_begin(),
@@ -123,7 +124,8 @@ bool ParseCryptoKeyHeaderValuesImpl(std::string::const_iterator input_begin,
CryptoKeyHeaderValues* values) {
net::HttpUtil::NameValuePairsIterator name_value_pairs(
input_begin, input_end, ';',
- net::HttpUtil::NameValuePairsIterator::VALUES_NOT_OPTIONAL);
+ net::HttpUtil::NameValuePairsIterator::Values::REQUIRED,
+ net::HttpUtil::NameValuePairsIterator::Quotes::NOT_STRICT);
while (name_value_pairs.GetNext()) {
const base::StringPiece name(name_value_pairs.name_begin(),
« no previous file with comments | « components/components_tests.gyp ('k') | components/link_header_util/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698