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

Unified Diff: net/http/transport_security_state.cc

Issue 1267383002: Allow preloaded pins to contain report URIs; remove special-case reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase fixup Created 5 years, 4 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 | « chrome/chrome_tests_unit.gypi ('k') | net/http/transport_security_state_static.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/transport_security_state.cc
diff --git a/net/http/transport_security_state.cc b/net/http/transport_security_state.cc
index b343223430245fc9e3764cf770dba270e3c5b693..b12312250ba7b60bcfb48089dd8a4faf8ab1ec3f 100644
--- a/net/http/transport_security_state.cc
+++ b/net/http/transport_security_state.cc
@@ -1033,6 +1033,9 @@ bool TransportSecurityState::GetStaticDomainState(const std::string& host,
return false;
const Pinset *pinset = &kPinsets[result.pinset_id];
+ if (pinset->report_uri != kNoReportURI)
+ pkp_state->report_uri = GURL(pinset->report_uri);
+
if (pinset->accepted_pins) {
const char* const* sha1_hash = pinset->accepted_pins;
while (*sha1_hash) {
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | net/http/transport_security_state_static.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698