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

Unified Diff: net/tools/transport_security_state_generator/input_file_parsers.cc

Issue 2924583002: Handle Windows style line-endings in transport_security_state_static.pins. (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | net/tools/transport_security_state_generator/input_file_parsers_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/transport_security_state_generator/input_file_parsers.cc
diff --git a/net/tools/transport_security_state_generator/input_file_parsers.cc b/net/tools/transport_security_state_generator/input_file_parsers.cc
index 4a633080ed00ec5a830196241985c253babdc411..27557622ff590450302aec038f350f18dd502d51 100644
--- a/net/tools/transport_security_state_generator/input_file_parsers.cc
+++ b/net/tools/transport_security_state_generator/input_file_parsers.cc
@@ -178,7 +178,7 @@ bool ParseCertificatesFile(base::StringPiece certs_input, Pinsets* pinsets) {
SPKIHash hash;
for (const base::StringPiece& line : SplitStringPiece(
- certs_input, "\n", base::KEEP_WHITESPACE, base::SPLIT_WANT_ALL)) {
+ certs_input, "\n", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL)) {
if (line[0] == '#') {
continue;
}
« no previous file with comments | « no previous file | net/tools/transport_security_state_generator/input_file_parsers_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698