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

Unified Diff: url/third_party/mozilla/url_parse.cc

Issue 2794303002: Deprecate resource requests whose URLs contain raw newlines. (Closed)
Patch Set: Rebase. Created 3 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
« no previous file with comments | « url/gurl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: url/third_party/mozilla/url_parse.cc
diff --git a/url/third_party/mozilla/url_parse.cc b/url/third_party/mozilla/url_parse.cc
index 41768601244970b1b8c3e789ae600fa71dc13136..1c1f3dd842f08dbdac0058c030fc3269d9ab8d88 100644
--- a/url/third_party/mozilla/url_parse.cc
+++ b/url/third_party/mozilla/url_parse.cc
@@ -692,16 +692,17 @@ bool DoExtractQueryKeyValue(const CHAR* spec,
Parsed::Parsed() : whitespace_removed(false), inner_parsed_(NULL) {}
-Parsed::Parsed(const Parsed& other) :
- scheme(other.scheme),
- username(other.username),
- password(other.password),
- host(other.host),
- port(other.port),
- path(other.path),
- query(other.query),
- ref(other.ref),
- inner_parsed_(NULL) {
+Parsed::Parsed(const Parsed& other)
+ : scheme(other.scheme),
+ username(other.username),
+ password(other.password),
+ host(other.host),
+ port(other.port),
+ path(other.path),
+ query(other.query),
+ ref(other.ref),
+ whitespace_removed(other.whitespace_removed),
+ inner_parsed_(NULL) {
if (other.inner_parsed_)
set_inner_parsed(*other.inner_parsed_);
}
@@ -716,6 +717,7 @@ Parsed& Parsed::operator=(const Parsed& other) {
path = other.path;
query = other.query;
ref = other.ref;
+ whitespace_removed = other.whitespace_removed;
if (other.inner_parsed_)
set_inner_parsed(*other.inner_parsed_);
else
« no previous file with comments | « url/gurl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698