for (size_t i = 0; i < pem_encoded_chain.size(); ++i)
*cert_chain += pem_encoded_chain[i];
+ request.add_pin(ssl_info.pinning_failure_log);
+
std::string out;
request.SerializeToString(&out);
return out;
ChromeFraudulentCertificateReporter::CreateURLRequest(
net::URLRequestContext* context) {
scoped_ptr<net::URLRequest> request =
- context->CreateRequest(upload_url_, net::DEFAULT_PRIORITY, this);
- request->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES |
- net::LOAD_DO_NOT_SAVE_COOKIES);
+ context->CreateRequest(upload_url_, net::DEFAULT_PRIORITY, this, NULL);
+ request->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES);
return request.Pass();
}
void ChromeFraudulentCertificateReporter::SendReport(
const std::string& hostname,
- const net::SSLInfo& ssl_info,
- bool sni_available) {
+ const net::SSLInfo& ssl_info) {
// We do silent/automatic reporting ONLY for Google properties. For other
// domains (when we start supporting that), we will ask for user permission.
- if (!net::TransportSecurityState::IsGooglePinnedProperty(hostname,
- sni_available)) {
+ if (!net::TransportSecurityState::IsGooglePinnedProperty(hostname)) {
return;
}