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

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

Issue 2901393005: Experiment with HSTS preload list filtering. (Closed)
Patch Set: play.google.com is required too. Created 3 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
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..38c1ac9010f5e6d98b0cc72fd13d348ba49d1262 100644
--- a/net/tools/transport_security_state_generator/input_file_parsers.cc
+++ b/net/tools/transport_security_state_generator/input_file_parsers.cc
@@ -318,6 +318,10 @@ bool ParseJSON(base::StringPiece json,
parsed->GetString("expect_staple_report_uri",
&entry->expect_staple_report_uri);
+ int importance = 0;
+ parsed->GetInteger("importance", &importance);
+ entry->importance = static_cast<unsigned>(importance);
+
entries->push_back(std::move(entry));
}
« no previous file with comments | « net/http/transport_security_state_static.json ('k') | net/tools/transport_security_state_generator/pinsets.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698