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

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: address more comments Created 4 years, 8 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: 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..caeffe42c20750bc136d9d74acea64f9d6ac01e1 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::NOT_OPTIONAL,
+ 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::NOT_OPTIONAL,
+ net::HttpUtil::NameValuePairsIterator::Quotes::NOT_STRICT);
while (name_value_pairs.GetNext()) {
const base::StringPiece name(name_value_pairs.name_begin(),

Powered by Google App Engine
This is Rietveld 408576698