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

Side by Side Diff: chrome/browser/ssl/chrome_security_state_model_client.cc

Issue 1957483003: Removal of SignedCertificateTimestampStore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated a comment Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ssl/chrome_security_state_model_client.h" 5 #include "chrome/browser/ssl/chrome_security_state_model_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 state->initialized = true; 103 state->initialized = true;
104 state->url = entry->GetURL(); 104 state->url = entry->GetURL();
105 const content::SSLStatus& ssl = entry->GetSSL(); 105 const content::SSLStatus& ssl = entry->GetSSL();
106 state->initial_security_level = 106 state->initial_security_level =
107 GetSecurityLevelForSecurityStyle(ssl.security_style); 107 GetSecurityLevelForSecurityStyle(ssl.security_style);
108 state->cert_id = ssl.cert_id; 108 state->cert_id = ssl.cert_id;
109 state->cert_status = ssl.cert_status; 109 state->cert_status = ssl.cert_status;
110 state->connection_status = ssl.connection_status; 110 state->connection_status = ssl.connection_status;
111 state->security_bits = ssl.security_bits; 111 state->security_bits = ssl.security_bits;
112 state->sct_verify_statuses.clear(); 112 state->sct_verify_statuses.clear();
113 for (const auto& sct : ssl.signed_certificate_timestamp_ids) 113 state->sct_verify_statuses.insert(state->sct_verify_statuses.end(),
114 state->sct_verify_statuses.push_back(sct.status); 114 ssl.num_unknown_scts, net::ct::SCT_STATUS_LOG_UNKNOWN);
Charlie Reis 2016/05/11 22:30:23 nit: Wrong indent. Please run git cl format, whic
dwaxweiler 2016/05/12 07:28:16 Acknowledged.
115 state->sct_verify_statuses.insert(state->sct_verify_statuses.end(),
116 ssl.num_invalid_scts, net::ct::SCT_STATUS_INVALID);
117 state->sct_verify_statuses.insert(state->sct_verify_statuses.end(),
118 ssl.num_valid_scts, net::ct::SCT_STATUS_OK);
115 state->displayed_mixed_content = 119 state->displayed_mixed_content =
116 (ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT) 120 (ssl.content_status & content::SSLStatus::DISPLAYED_INSECURE_CONTENT)
117 ? true 121 ? true
118 : false; 122 : false;
119 state->ran_mixed_content = 123 state->ran_mixed_content =
120 (ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT) ? true 124 (ssl.content_status & content::SSLStatus::RAN_INSECURE_CONTENT) ? true
121 : false; 125 : false;
122 } 126 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698